Skip to content

build: Update Python to 3.12 and dependencies (#509) #199

build: Update Python to 3.12 and dependencies (#509)

build: Update Python to 3.12 and dependencies (#509) #199

name: Build and Publish (dev) Docker Image
on:
push:
branches:
- 'main'
paths:
- 'repository_service_tuf_worker/**'
- 'app.py'
- 'entrypoint.sh'
- 'supervisor.conf'
- 'Dockerfile'
- 'requirements.txt'
- 'setup.py'
- 'alembic.ini'
- 'alembic/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: '3.12'
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb
- name: Login to GitHub Container Registry
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/repository-service-tuf/repository-service-tuf-worker:dev
build-args: |
RELEASE_VERSION=dev