Skip to content

GHA: update deploy_protected.yml (#2294) #1068

GHA: update deploy_protected.yml (#2294)

GHA: update deploy_protected.yml (#2294) #1068

name: Deploy Protected
on:
push:
branches:
- master
- develop
- release**
pull_request:
paths:
- container/Dockerfile
# ensure all relevant files are still included in sdist
- python/sdist/MANIFEST.in
workflow_dispatch:
jobs:
dockerhub:
name: Deploy Dockerhub
if: github.repository_owner == 'AMICI-dev'
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.9]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- run: git archive -o container/amici.tar.gz --format=tar.gz HEAD
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: dweindl/amici
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: container/
dockerfile: Dockerfile
tag_names: true
platforms: linux/amd64,linux/arm64