Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshanchik committed Jun 21, 2024
1 parent 5a2dca0 commit 03723d8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Create and publish image
on:
push:
branches:
- main
- og-token-support
- '**' # Слушаем все ветки

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -91,12 +90,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 +141,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 +192,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 +207,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 03723d8

Please sign in to comment.