Skip to content

Commit

Permalink
Update tagged builds
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Apr 4, 2023
1 parent 2128a5c commit e2c24b9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build_docker_tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand All @@ -40,7 +45,7 @@ jobs:
file: ./Dockerfile.latest
platforms: linux/amd64,linux/arm64
push: true
tags: philipssoftware/fluent-bit-out-hsdp:${{ steps.vars.outputs.tag }}
tags: philipssoftware/fluent-bit-out-hsdp:${{ steps.vars.outputs.tag }},${{ steps.meta.outputs.tags }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand All @@ -66,6 +71,11 @@ jobs:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}-debug
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand All @@ -78,7 +88,7 @@ jobs:
file: ./Dockerfile.debug
platforms: linux/amd64,linux/arm64
push: true
tags: philipssoftware/fluent-bit-out-hsdp:${{ steps.vars.outputs.tag }}-debug
tags: philipssoftware/fluent-bit-out-hsdp-debug:${{ steps.vars.outputs.tag }},${{ steps.meta.outputs.tags }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down Expand Up @@ -121,7 +131,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
images: ghcr.io/${{ github.repository }}-init
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand Down

0 comments on commit e2c24b9

Please sign in to comment.