Skip to content

Commit

Permalink
fix: allow disable container retagging
Browse files Browse the repository at this point in the history
  • Loading branch information
kristof-mattei committed Mar 26, 2023
1 parent 588c3a0 commit 8e39b39
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/retag-containers-after-push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Retag containers after new push / PR

env:
BUILD_DOCKER_CONTAINER: true
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
Expand Down Expand Up @@ -30,9 +31,23 @@ permissions:
packages: write

jobs:
produce-docker-container:
name: Should Docker container be built?
runs-on: ubuntu-latest
outputs:
should: ${{ fromJSON(env.BUILD_DOCKER_CONTAINER) }}

steps:
- name: Dummy
shell: bash
run: |
echo "These are not the steps you're looking for..."
retag-containers:
name: Retag the containers
runs-on: ubuntu-latest
needs:
- produce-docker-container
steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
Expand Down

0 comments on commit 8e39b39

Please sign in to comment.