From 969c9216d107f5aa8339a894b23a5424f0c72fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Wed, 18 Sep 2024 21:47:23 +0200 Subject: [PATCH] update cicd (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- .github/workflows/backend.yml | 3 ++- .github/workflows/frontend.yml | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 935db08ce..a7c396688 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -19,6 +19,7 @@ on: env: REGISTRY: "ghcr.io" + ORG: "IBM" IMAGE_NAME: "cbomkit" jobs: @@ -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}} diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index d88d51386..90a1657e5 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -19,6 +19,7 @@ on: env: REGISTRY: "ghcr.io" + ORG: "IBM" IMAGE_NAME: "cbomkit-frontend" jobs: @@ -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}}