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 authored Aug 14, 2024
1 parent a7440a5 commit aff4952
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-p2-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,30 @@ jobs:
rsync -aiv --delete --mkpath -e ssh products/es.updatesite/target/repository/ [email protected]:download.elexis.info/elexis-server/${{ env.BRANCH_NAME }}/p2/elexis-server/
rsync -aiv --no-recursive -e ssh products/es.core.product.runtime/target/products/* [email protected]:download.elexis.info/elexis-server/${{ env.BRANCH_NAME }}/products/
eval $(ssh-agent -k)
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
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 }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
pull: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit aff4952

Please sign in to comment.