Skip to content

Commit

Permalink
Attempt to fix deploy
Browse files Browse the repository at this point in the history
Frontend container seems stale
  • Loading branch information
Erikvv committed Dec 12, 2024
1 parent f1323ae commit d5dab27
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@ name: Build and deploy all services

on:
workflow_dispatch:
workflow_run:
workflows: ["Run automated tests"]
types:
- completed
## uncomment to run deploy regardless of failing tests
# push:
# branches:
# - main
# - production
# pull_request:
# types: [ opened, synchronize, reopened ]
push:
branches:
- main
- production
pull_request:
types: [ opened, synchronize, reopened ]

jobs:
variables:
## comment to run deploy regardless of failing tests
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
outputs:
VERSION_TAG: ${{ fromJson(steps.variables.outputs.result).VERSION_TAG }}
Expand Down Expand Up @@ -64,6 +57,7 @@ jobs:
needs: variables
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
## Buildx is needed for caching
- name: Set up Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -87,10 +81,11 @@ jobs:
environment: ${{ needs.variables.outputs.GITHUB_ENVIRONMENT }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
## Buildx is needed for caching
- name: Set up Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Azure Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down

0 comments on commit d5dab27

Please sign in to comment.