Skip to content

Commit

Permalink
upd build-push.yml
Browse files Browse the repository at this point in the history
(cherry picked from commit d0f8f27)
  • Loading branch information
ivel13 committed Sep 19, 2024
1 parent bd6cf0a commit cd8c2cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- 'staging-goldenage'
- 'staging'

name: Docker build and push

Expand Down Expand Up @@ -29,5 +29,5 @@ jobs:
- name: Build and push
run: |
docker build -t ${{ env.IMAGE_REPOSITORY }}:${{ env.IMAGE_TAG }} -t ${{ env.IMAGE_REPOSITORY }}:latest --build-arg GIT_COMMIT_SHA=${{ env.IMAGE_TAG }} --build-arg GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }} -f Dockerfile .
docker build -t ${{ env.IMAGE_REPOSITORY }}:staging-${{ env.IMAGE_TAG }} -t ${{ env.IMAGE_REPOSITORY }}:staging-latest --build-arg GIT_COMMIT_SHA=${{ env.IMAGE_TAG }} --build-arg GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }} -f Dockerfile .
docker push ${{ env.IMAGE_REPOSITORY }} --all-tags

0 comments on commit cd8c2cd

Please sign in to comment.