diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 62f119720b..41db54593f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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