Skip to content

Commit

Permalink
Fix build action
Browse files Browse the repository at this point in the history
  • Loading branch information
javfg committed Jan 3, 2025
1 parent 45092b4 commit 024927a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
TAG: ${{ github.ref_name }}

steps:
- id: prepare-tag
- id: prepare_tag
name: Prepare tag
run: echo "TAG=$(echo $TAG | sed 's/^v//')" >> $GITHUB_ENV

Expand Down Expand Up @@ -57,21 +57,22 @@ jobs:

- id: push
name: Build and push Docker image

uses: docker/build-push-action@v5
with:
context: .
push: true
labels: |
org.opencontainers.image.description=${{ github.event.repository.description }}
tags: |
ghcr.io/${{ github.repository }}/{{ github.repository }}:latest
ghcr.io/${{ github.repository }}/{{ github.repository }}:${{ env.TAG }}
europe-west1-docker.pkg.dev/open-targets-eu-dev/{{ github.repository }}/{{ github.repository }}:latest
europe-west1-docker.pkg.dev/open-targets-eu-dev/{{ github.repository }}/{{ github.repository }}:${{ env.TAG }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.TAG }}
europe-west1-docker.pkg.dev/open-targets-eu-dev/ontoform/ontoform:latest
europe-west1-docker.pkg.dev/open-targets-eu-dev/ontoform/ontoform:${{ env.TAG }}
- id: generate-attestations
- id: generate_attestations
name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ghcr.io/${{ github.repository }}/{{ github.repository }}
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 024927a

Please sign in to comment.