From 4d8de70d1ec84273ef4333044af13241fe593e9f Mon Sep 17 00:00:00 2001 From: Soban Javed Date: Wed, 12 Apr 2023 01:49:11 +0500 Subject: [PATCH] feat: allow creation of docker image for production This will allow creation of docker image for production on each push to master or open release branches. --- .github/workflows/push-docker-images.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push-docker-images.yml b/.github/workflows/push-docker-images.yml index e330f82f..84145ba7 100644 --- a/.github/workflows/push-docker-images.yml +++ b/.github/workflows/push-docker-images.yml @@ -4,7 +4,6 @@ on: push: branches: - master - tags: - open-release/** jobs: push: @@ -38,12 +37,12 @@ jobs: repository: edxops/registrar-dev tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }} - # - name: Build and push prod Docker image - # uses: docker/build-push-action@v1 - # with: - # push: true - # username: ${{ secrets.DOCKERHUB_USERNAME }} - # password: ${{ secrets.DOCKERHUB_PASSWORD }} - # target: prod - # repository: edxops/registrar - # tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }} \ No newline at end of file + - name: Build and push prod Docker image + uses: docker/build-push-action@v1 + with: + push: true + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + target: prod + repository: edxops/registrar + tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }} \ No newline at end of file