Skip to content

Commit

Permalink
it worked! now to correct the tagging for the -development image.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillmv committed Dec 10, 2023
1 parent 04a2ef6 commit 91cbb55
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/publish_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
flavor: |
latest=true
tags: |
type=ref,event=branch
type=sha,format=long
- name: build image
uses: docker/build-push-action@v5
Expand All @@ -67,12 +68,25 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Extract metadata (tags, labels) for dev image
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-development
flavor: |
latest=true
tags: |
type=ref,event=branch
type=sha,format=long
- name: Build and push dev image
uses: docker/build-push-action@v5
with:
context: .
push: true
target: development
tags: ghcr.io/phillmv/arquivo-development:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}

cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 91cbb55

Please sign in to comment.