mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-12 00:11:49 +02:00
Compare commits
24 commits
fc508f03b4
...
dbaafa8422
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dbaafa8422 | ||
![]() |
abeab4b0fd | ||
![]() |
f9dfbe9fe1 | ||
![]() |
49d454693e | ||
![]() |
31b04b6556 | ||
![]() |
0972542ae3 | ||
![]() |
222169d7fe | ||
![]() |
b2ab898843 | ||
![]() |
ee95e86508 | ||
![]() |
542fe93d1f | ||
![]() |
92267c723c | ||
![]() |
b8ef87a7fc | ||
![]() |
79d9ae7ee2 | ||
![]() |
3c90ad9d0b | ||
![]() |
d9f23170cf | ||
![]() |
f33b3851d5 | ||
![]() |
553b0047c6 | ||
![]() |
18ec4758bb | ||
![]() |
038e95b513 | ||
![]() |
d3d04b22ec | ||
![]() |
0042e131f6 | ||
![]() |
a2acbeff53 | ||
![]() |
be8005f72b | ||
![]() |
712b309dbf |
2 changed files with 10 additions and 14 deletions
22
.github/workflows/build-push-image.yml
vendored
22
.github/workflows/build-push-image.yml
vendored
|
@ -69,10 +69,6 @@ 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:
|
||||
|
@ -135,11 +131,9 @@ 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 }}
|
||||
|
@ -168,15 +162,15 @@ jobs:
|
|||
- name: Create manifest list and push
|
||||
working-directory: ${{ runner.temp }}/digests
|
||||
run: |
|
||||
DIGESTS=$(printf '${{ needs.build.outputs.image }}@sha256:%s ' *)
|
||||
docker buildx imagetools create -t ${{ needs.build.outputs.image }} ${DIGESTS}
|
||||
DIGESTS=$(printf '${{ needs.prepare.outputs.image }}@sha256:%s ' *)
|
||||
docker buildx imagetools create -t ${{ needs.prepare.outputs.image }} ${DIGESTS}
|
||||
|
||||
- name: Inspect image
|
||||
id: image
|
||||
run: |
|
||||
# Inspect the image
|
||||
docker buildx imagetools inspect ${{ needs.build.outputs.image }}
|
||||
docker buildx imagetools inspect ${{ needs.build.outputs.image }} --format "{{json .Manifest}}" > manifest
|
||||
docker buildx imagetools inspect ${{ needs.prepare.outputs.image }}
|
||||
docker buildx imagetools inspect ${{ needs.prepare.outputs.image }} --format "{{json .Manifest}}" > manifest
|
||||
|
||||
# Calculate and print the digests
|
||||
digest_root=$(jq -r .digest manifest)
|
||||
|
@ -198,6 +192,7 @@ jobs:
|
|||
# the container registry.
|
||||
provenance:
|
||||
needs:
|
||||
- prepare # implied by merge, but required here to access image params
|
||||
- merge
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -212,7 +207,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.merge.outputs.image }}
|
||||
image: ${{ needs.prepare.outputs.image }}
|
||||
registry-username: ${{ inputs.registry_user }}
|
||||
secrets:
|
||||
registry-password: ${{ secrets.registry_token }}
|
||||
|
@ -221,6 +216,7 @@ 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:
|
||||
|
@ -242,7 +238,7 @@ jobs:
|
|||
--runtime \
|
||||
docker \
|
||||
--debian-archive-date \
|
||||
${{ needs.merge.outputs.debian_archive_date }} \
|
||||
${{ needs.prepare.outputs.debian_archive_date }} \
|
||||
--platform \
|
||||
linux/${{ matrix.platform.name }} \
|
||||
${{ needs.merge.outputs[format('digest_{0}', matrix.platform.name)] }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0faa21eb4e33ec1a3212468dcb6db3a668cf8fc8
|
||||
Subproject commit 9e95f7e1b7fbf904a76078715485e4fdba495676
|
Loading…
Reference in a new issue