From 455d285a0aca2a3d2554fc1fe709b5441d192cc3 Mon Sep 17 00:00:00 2001 From: Marco Descher Date: Wed, 14 Aug 2024 13:19:00 +0200 Subject: [PATCH] Update build-p2-site.yaml --- .github/workflows/build-p2-site.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-p2-site.yaml b/.github/workflows/build-p2-site.yaml index a38db32b..7dca4115 100644 --- a/.github/workflows/build-p2-site.yaml +++ b/.github/workflows/build-p2-site.yaml @@ -4,7 +4,9 @@ env: TARGET: '2023-09-java21' BRANCH_NAME: ${{ github.head_ref || github.ref_name }} DEPLOY_SECRET: ${{ secrets.SSH_PRIVATE_KEY_ED25519_BASE64 }} - + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + on: push: workflow_dispatch: @@ -29,7 +31,7 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@v3 with: - registry: ghcr.io + registry: ${{ REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker @@ -37,9 +39,6 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=ref,event=push - type=ref,event=workflow_dispatch - name: Build and push Docker image id: push uses: docker/build-push-action@v6