Skip to content

Commit

Permalink
echem-rebase now build and push to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ssun30 committed Oct 25, 2024
1 parent c013709 commit 9c1f0ac
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,32 @@ jobs:
with:
push: true
tags: reactionmechanismgenerator/rmg:latest

build-and-push-docker-echem:
# after testing and on pushes to main, build and push docker image
# technically we could live without the 'needs' since _in theory_
# nothing will ever be merged into main that fails the tests, but
# who knows ¯\_(ツ)_/¯
#
# taken from https://github.com/docker/build-push-action
needs: build-and-test-linux
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/echem-rebase' && github.repository == 'ReactionMechanismGenerator/RMG-Py'
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and Push
uses: docker/build-push-action@v4
with:
push: true
tags: reactionmechanismgenerator/rmg:electrocat

0 comments on commit 9c1f0ac

Please sign in to comment.