Skip to content

Commit

Permalink
Update build_and_push.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshanchik authored Jun 21, 2024
1 parent 5a2dca0 commit af2d050
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ jobs:
- name: Generate temporary Dockerfile
run: |
sed 's/${BRANCH}/'${{ github.ref_name }}'/g' Dockerfile_db > Dockerfile_temp
sed 's/${BRANCH}/'${{ github.ref_name }}'/g' Dockerfile_db > $GITHUB_WORKSPACE/Dockerfile_temp_db
- name: Build and push
uses: docker/build-push-action@v2
with:
file: Dockerfile_temp
file: ${{ github.workspace }}/Dockerfile_temp_db
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -142,12 +142,12 @@ jobs:
- name: Generate temporary Dockerfile
run: |
sed 's/${BRANCH}/'${{ github.ref_name }}'/g' Dockerfile_verifier > Dockerfile_temp
sed 's/${BRANCH}/'${{ github.ref_name }}'/g' Dockerfile_verifier > $GITHUB_WORKSPACE/Dockerfile_temp_verifier
- name: Build and push
uses: docker/build-push-action@v2
with:
file: Dockerfile_temp
file: ${{ github.workspace }}/Dockerfile_temp_verifier
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -193,12 +193,12 @@ jobs:
- name: Generate temporary Dockerfile
run: |
sed 's/${BRANCH}/'${{ github.ref_name }}'/g' Dockerfile_mailer > Dockerfile_temp
sed 's/${BRANCH}/'${{ github.ref_name }}'/g' Dockerfile_mailer > $GITHUB_WORKSPACE/Dockerfile_temp_mailer
- name: Build and push
uses: docker/build-push-action@v2
with:
file: Dockerfile_temp
file: ${{ github.workspace }}/Dockerfile_temp_mailer
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -208,4 +208,4 @@ jobs:
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 comments on commit af2d050

Please sign in to comment.