Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJohn Wesley Walker III <81404201+jww3@users.noreply.github.com>2024-02-22 14:38:58 +0100
committerGitHub <noreply@github.com>2024-02-22 14:38:58 +0100
commit99a915abf62a436937e9536118385d4490cde46e (patch)
treef0c78ac57f0d96c4f9ed5062ecb54c3aa0eab383 /.github/workflows
parentb6d2b3efea8e5d71ac10642cc4698c056ee9e9dc (diff)
Warn on attempts to publish `test-ubuntu-git` from non-main branch. (#1623)
* Warn on attempts to publish test-ubuntu-git from non-main branch. * Rename build step to clarify that Push is optional.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update-test-ubuntu-git.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/update-test-ubuntu-git.yml b/.github/workflows/update-test-ubuntu-git.yml
index 8481243..e2d57f3 100644
--- a/.github/workflows/update-test-ubuntu-git.yml
+++ b/.github/workflows/update-test-ubuntu-git.yml
@@ -42,8 +42,12 @@ jobs:
# Use `date` with a custom format to achieve the key=value format GITHUB_OUTPUT expects.
run: date -u "+now=%Y%m%d.%H%M%S.%3NZ" >> "$GITHUB_OUTPUT"
+ - name: Issue Image Publish Warning
+ if: ${{ inputs.publish && github.ref_name != 'main' }}
+ run: echo "::warning::test-ubuntu-git images can only be published from the actions/checkout 'main' branch. Workflow will continue with push/publish disabled."
+
# Use `docker/build-push-action` to build (and optionally publish) the image.
- - name: Build and push Docker image
+ - name: Build Docker Image (with optional Push)
uses: docker/build-push-action@v5.1.0
with:
context: .