Skip to content

[pre-commit.ci] pre-commit autoupdate #568

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #568

Workflow file for this run

name: Deploy deb/rpm to s3 repo
on:
push:
branches: main
pull_request: {}
jobs:
pkgs:
name: ${{ matrix.pkg }}
strategy:
fail-fast: false
matrix:
pkg: [deb, rpm]
environment: aws
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install deps
run: pip install gitpython docker
- name: Download
run: python download.py
- name: Build and sign
run: python build.py ${{ matrix.pkg }}
- name: sanity check
run: python test.py ${{ matrix.pkg }}
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::260760892802:role/dvc-s3-repo-deploy
- name: Upload
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
env:
GPG_ITERATIVE_ASC: ${{ secrets.GPG_ITERATIVE_ASC }}
GPG_ITERATIVE_PASS: ${{ secrets.GPG_ITERATIVE_PASS }}
run: python upload.py ${{ matrix.pkg }}
notify:
if: github.ref == 'refs/heads/main' && failure()
needs: [pkgs]
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: 'Package build failed for ${{ github.repository }}'
SLACK_TITLE: CI Status
SLACK_USERNAME: dvc-pkg-build