Skip to content

Commit

Permalink
Merge pull request #161 from hunghvu/development
Browse files Browse the repository at this point in the history
fix: attempt to correct misconfiguration of multi-registry build and …
  • Loading branch information
hunghvu authored Apr 21, 2024
2 parents d007ef1 + 26b94d8 commit 00ebd0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build-and-push-caddy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ on:
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dockerfile: ./infras/containers/caddy/Dockerfile
- image: |
docker.io/hunghvu/blogfolio-caddy
ghcr.io/hunghvu/blogfolio-caddy
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -48,7 +41,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
images: |
docker.io/hunghvu/blogfolio-caddy
ghcr.io/hunghvu/blogfolio-caddy
# If we want to reference a subdir
# https://github.com/docker/build-push-action/issues/528
Expand All @@ -57,7 +52,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
file: ./infras/containers/caddy/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-and-push-cms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
images: |
docker.io/hunghvu/blogfolio-caddy
ghcr.io/hunghvu/blogfolio-caddy
# If we want to reference a subdir
# https://github.com/docker/build-push-action/issues/528
Expand All @@ -57,7 +59,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
file: ./infras/containers/caddy/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-and-push-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
images: |
docker.io/hunghvu/blogfolio-caddy
ghcr.io/hunghvu/blogfolio-caddy
# If we want to reference a subdir
# https://github.com/docker/build-push-action/issues/528
Expand All @@ -57,7 +59,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
file: ./infras/containers/caddy/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 00ebd0e

Please sign in to comment.