mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-11 07:51:49 +02:00
Compare commits
25 commits
dbaafa8422
...
fc508f03b4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fc508f03b4 | ||
![]() |
2b6736f978 | ||
![]() |
b301bf07ea | ||
![]() |
c4bd9b3701 | ||
![]() |
9d92fa1f12 | ||
![]() |
606fbb7abb | ||
![]() |
410fb754ea | ||
![]() |
635c4433e4 | ||
![]() |
d5ffbbbe93 | ||
![]() |
44f0ea5149 | ||
![]() |
29cb046f17 | ||
![]() |
e903cf377f | ||
![]() |
a7006287cc | ||
![]() |
ba621d3bea | ||
![]() |
eafbf98ca8 | ||
![]() |
167379790c | ||
![]() |
e7576fe78b | ||
![]() |
67092b87e5 | ||
![]() |
2e59d889b8 | ||
![]() |
ad70d3b1d5 | ||
![]() |
c6c7c14f12 | ||
![]() |
12a87617b5 | ||
![]() |
6074bb6a36 | ||
![]() |
ddf1c27bcd | ||
![]() |
0bae29a265 |
2 changed files with 14 additions and 10 deletions
22
.github/workflows/build-push-image.yml
vendored
22
.github/workflows/build-push-image.yml
vendored
|
@ -69,6 +69,10 @@ jobs:
|
|||
runs-on: ${{ matrix.platform.runs-on }}
|
||||
needs:
|
||||
- prepare
|
||||
outputs:
|
||||
debian_archive_date: ${{ needs.prepare.outputs.debian_archive_date }}
|
||||
source_date_epoch: ${{ needs.prepare.outputs.source_date_epoch }}
|
||||
image: ${{ needs.prepare.outputs.image }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
@ -131,9 +135,11 @@ jobs:
|
|||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- prepare # implied by build, but required here to access image params
|
||||
- build
|
||||
outputs:
|
||||
debian_archive_date: ${{ needs.build.outputs.debian_archive_date }}
|
||||
source_date_epoch: ${{ needs.build.outputs.source_date_epoch }}
|
||||
image: ${{ needs.build.outputs.image }}
|
||||
digest_root: ${{ steps.image.outputs.digest_root }}
|
||||
digest_amd64: ${{ steps.image.outputs.digest_amd64 }}
|
||||
digest_arm64: ${{ steps.image.outputs.digest_arm64 }}
|
||||
|
@ -162,15 +168,15 @@ jobs:
|
|||
- name: Create manifest list and push
|
||||
working-directory: ${{ runner.temp }}/digests
|
||||
run: |
|
||||
DIGESTS=$(printf '${{ needs.prepare.outputs.image }}@sha256:%s ' *)
|
||||
docker buildx imagetools create -t ${{ needs.prepare.outputs.image }} ${DIGESTS}
|
||||
DIGESTS=$(printf '${{ needs.build.outputs.image }}@sha256:%s ' *)
|
||||
docker buildx imagetools create -t ${{ needs.build.outputs.image }} ${DIGESTS}
|
||||
|
||||
- name: Inspect image
|
||||
id: image
|
||||
run: |
|
||||
# Inspect the image
|
||||
docker buildx imagetools inspect ${{ needs.prepare.outputs.image }}
|
||||
docker buildx imagetools inspect ${{ needs.prepare.outputs.image }} --format "{{json .Manifest}}" > manifest
|
||||
docker buildx imagetools inspect ${{ needs.build.outputs.image }}
|
||||
docker buildx imagetools inspect ${{ needs.build.outputs.image }} --format "{{json .Manifest}}" > manifest
|
||||
|
||||
# Calculate and print the digests
|
||||
digest_root=$(jq -r .digest manifest)
|
||||
|
@ -192,7 +198,6 @@ jobs:
|
|||
# the container registry.
|
||||
provenance:
|
||||
needs:
|
||||
- prepare # implied by merge, but required here to access image params
|
||||
- merge
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -207,7 +212,7 @@ jobs:
|
|||
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v2.0.0
|
||||
with:
|
||||
digest: ${{ needs.merge.outputs[format('digest_{0}', matrix.manifest_type)] }}
|
||||
image: ${{ needs.prepare.outputs.image }}
|
||||
image: ${{ needs.merge.outputs.image }}
|
||||
registry-username: ${{ inputs.registry_user }}
|
||||
secrets:
|
||||
registry-password: ${{ secrets.registry_token }}
|
||||
|
@ -216,7 +221,6 @@ jobs:
|
|||
check-reproducibility:
|
||||
if: ${{ inputs.reproduce }}
|
||||
needs:
|
||||
- prepare # implied by merge, but required here to access image params
|
||||
- merge
|
||||
runs-on: ${{ matrix.platform.runs-on }}
|
||||
strategy:
|
||||
|
@ -238,7 +242,7 @@ jobs:
|
|||
--runtime \
|
||||
docker \
|
||||
--debian-archive-date \
|
||||
${{ needs.prepare.outputs.debian_archive_date }} \
|
||||
${{ needs.merge.outputs.debian_archive_date }} \
|
||||
--platform \
|
||||
linux/${{ matrix.platform.name }} \
|
||||
${{ needs.merge.outputs[format('digest_{0}', matrix.platform.name)] }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9e95f7e1b7fbf904a76078715485e4fdba495676
|
||||
Subproject commit 0faa21eb4e33ec1a3212468dcb6db3a668cf8fc8
|
Loading…
Reference in a new issue