Publish Docker image #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker image | |
on: | |
release: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build Docker image | |
run: docker build . --file Dockerfile --tag marcolorusso/qunfold | |
- name: Build Developer Docker image | |
run: docker build . --file Dockerfile.dev --tag marcolorusso/qunfold-dev | |
- name: Push to DockerHub | |
run: | | |
docker login -u marcolorusso -p ${{ secrets.DOCKER_TOKEN }} | |
docker push marcolorusso/qunfold | |
docker push marcolorusso/qunfold-dev |