Skip to content

Commit

Permalink
update cicd (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicklas Körtge <[email protected]>
  • Loading branch information
n1ckl0sk0rtge committed Sep 18, 2024
1 parent b34d791 commit 969c921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:

env:
REGISTRY: "ghcr.io"
ORG: "IBM"
IMAGE_NAME: "cbomkit"

jobs:
Expand Down Expand Up @@ -66,7 +67,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/cbomkit/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:

env:
REGISTRY: "ghcr.io"
ORG: "IBM"
IMAGE_NAME: "cbomkit-frontend"

jobs:
Expand All @@ -37,15 +38,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install node packages
run: npm ci
- name: Build
run: npm run build
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/cbomkit/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
Expand Down

0 comments on commit 969c921

Please sign in to comment.