summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-16 03:47:17 -0500
committerseth <[email protected]>2023-11-16 08:57:20 +0000
commit64a66dff17760aba2898ab50bd7263989798a9f6 (patch)
tree887b77567915d11a1953e4ccfcec0e57d0b52d11
parent17573cb795caae3c44b8ab5974febfbe09bc344d (diff)
actions: try to run docker workflow after garnix again
-rw-r--r--.github/workflows/docker.yaml20
1 files changed, 15 insertions, 5 deletions
diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml
index 3f7d782..361d71d 100644
--- a/.github/workflows/docker.yaml
+++ b/.github/workflows/docker.yaml
@@ -3,8 +3,8 @@ name: upload to registry
# changes are made to `main`
on:
- push:
- branches: [main]
+ check_suite:
+ types: [completed]
workflow_dispatch:
jobs:
@@ -12,9 +12,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- arch:
- - amd64
- - arm64v8
+ arch: [amd64, arm64v8]
+
+ # https://github.com/sellout/bash-strict-mode/commit/9bf1d65c2f786a9887facfcb81e06d8b8b5f4667
+ if: github.event.check_suite.app.name == 'Garnix CI'
+ && github.event.check_suite.conclusion == 'success'
+ && github.event.check_suite.latest_check_runs_count > 1
+ && github.event.check_suite.head_branch == 'main'
steps:
- uses: actions/checkout@v4
@@ -50,6 +54,12 @@ jobs:
REGISTRY: ghcr.io
USERNAME: getchoo
+ # ditto
+ if: github.event.check_suite.app.name == 'Garnix CI'
+ && github.event.check_suite.conclusion == 'success'
+ && github.event.check_suite.latest_check_runs_count > 1
+ && github.event.check_suite.head_branch == 'main'
+
steps:
- name: set image name
run: |