We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8992411 commit 9e5074dCopy full SHA for 9e5074d
.github/workflows/build-and-push.yaml
@@ -1,12 +1,13 @@
1
name: Build & Push Container Image
2
3
+# Push a container image when the main branch is pushed or when
4
+# a release is published. This isn't dependant on the tests passing
5
+# or the linter being happy.
6
on:
- workflow_run:
- workflows: [Test & Lint]
- types: [completed]
7
+ push:
8
branches: [main]
9
release:
- types: [ published ]
10
+ types: [published]
11
12
env:
13
REGISTRY: ghcr.io
@@ -15,7 +16,6 @@ env:
15
16
jobs:
17
build-and-push:
18
runs-on: ubuntu-latest
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
19
permissions:
20
contents: read
21
packages: write
.github/workflows/test-and-lint.yaml
@@ -1,5 +1,6 @@
name: Test & Lint
+# Run the tests on any branch push
push
0 commit comments