Skip to content

Commit

Permalink
🔖 Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
abdheshnayak committed Feb 8, 2024
1 parent e3e196f commit 1389e69
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
echo "OVERRIDE_PUSHED_IMAGE=false" >> $GITHUB_ENV
- name: Build & Push Image
if: startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/tags/')
- name: Build
if: "!startsWith(github.ref, 'refs/heads/release-') && !startsWith(github.ref, 'refs/tags/')"
run: |
set +e
image_name="ghcr.io/${{ github.repository }}/${{matrix.app}}"
Expand All @@ -90,10 +90,10 @@ jobs:
set -e
docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t "$image_name:$IMAGE_TAG" --push
docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t "$image_name:$IMAGE_TAG"
- name: Build & Push Image
if: !(startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/tags/'))
if: startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/tags/')
run: |
set +e
image_name="ghcr.io/${{ github.repository }}/${{matrix.app}}"
Expand All @@ -107,4 +107,5 @@ jobs:
set -e
docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t "$image_name:$IMAGE_TAG"
docker build --build-arg APP=${{matrix.app}} -f ${{matrix.dockerFile}} . -t "$image_name:$IMAGE_TAG" --push

0 comments on commit 1389e69

Please sign in to comment.