Skip to content

Commit

Permalink
Upgrading deploy containers workflow (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonKirill authored Apr 13, 2024
1 parent 1a541b6 commit e5f49b5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/deploy_containers.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Deploy Images to GHCR

on:
push:
branches:
- dev
- main
- alpha
workflow_run:
workflows: ["Run Unit Tests"]
branches: [alpha, dev, master]
types: [completed]
workflow_dispatch:
inputs:
version:
Expand All @@ -21,7 +20,7 @@ permissions:
jobs:
publish-images:
runs-on: ubuntu-latest

if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v2
- name: Install Node JS
Expand Down Expand Up @@ -53,6 +52,10 @@ jobs:
if: github.event_name == 'workflow_dispatch'
run: |
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
- name: Apply Workflow Run Environments
if: github.event_name == 'workflow_run'
run: |
echo "VERSION=$(echo ${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
- name: Apply Push Environments
if: github.event_name == 'push'
run: |
Expand Down

0 comments on commit e5f49b5

Please sign in to comment.