Skip to content

Commit

Permalink
chore(caluma): build and push caluma image
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Aug 26, 2024
1 parent b1ae753 commit 7520825
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ concurrency:
cancel-in-progress: true

env:
IMAGE_NAME: adfinis/mysagw
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io

jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/build/ci/github-actions/
container-registry:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: ghcr.io/adfinis/mysagw
path: api
- image: ghcr.io/adfinis/mysagw-caluma
path: caluma
permissions:
packages: write
contents: read
Expand All @@ -49,7 +57,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ matrix.image }}
tags: |
type=raw,value=dev,enable={{is_default_branch}}
type=semver,pattern={{version}}
Expand All @@ -59,7 +67,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:api"
context: {{defaultContext}}:${{ matrix.path }}
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 7520825

Please sign in to comment.