Skip to content

Commit

Permalink
Update build-p2-site.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
col-panic committed Aug 14, 2024
1 parent 39ff606 commit 455d285
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-p2-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -29,17 +31,14 @@ 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
id: meta
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
Expand Down

0 comments on commit 455d285

Please sign in to comment.