Skip to content

Commit

Permalink
Merge pull request #41 from mikeiken:fix-actions-release
Browse files Browse the repository at this point in the history
Fix workflow conditions for image builds by restoring event checks
  • Loading branch information
Kseen715 authored Oct 14, 2024
2 parents 41dd124 + 6fa184f commit 2d998da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# IS_RELEASE: ${{ github.event_name == 'release' }}
IS_RELEASE: Trues
IS_RELEASE: ${{ github.event_name == 'release' }}
# IS_RELEASE: True
DJANGO_SUFFIX: -django
FRONTEND_SUFFIX: -frontend
NGINX_SUFFIX: -nginx
Expand All @@ -26,7 +26,6 @@ env:
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image-django:
if: github.event_name == 'push'
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
Expand Down Expand Up @@ -86,7 +85,6 @@ jobs:
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ env.DJANGO_SUFFIX }}:$STRIPPED_TAG
build-and-push-image-frontend:
if: github.event_name == 'push'
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -143,7 +141,6 @@ jobs:
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ env.FRONTEND_SUFFIX }}:$STRIPPED_TAG
build-and-push-image-nginx:
if: github.event_name == 'push'
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -200,7 +197,6 @@ jobs:
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ env.NGINX_SUFFIX }}:$STRIPPED_TAG
build-and-push-image-psql:
if: github.event_name == 'push'
runs-on: ubuntu-latest

permissions:
Expand Down

0 comments on commit 2d998da

Please sign in to comment.