mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-15 09:41: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 }}
|
runs-on: ${{ matrix.platform.runs-on }}
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- 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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -135,11 +131,9 @@ jobs:
|
||||||
merge:
|
merge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
|
- prepare # implied by build, but required here to access image params
|
||||||
- build
|
- build
|
||||||
outputs:
|
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_root: ${{ steps.image.outputs.digest_root }}
|
||||||
digest_amd64: ${{ steps.image.outputs.digest_amd64 }}
|
digest_amd64: ${{ steps.image.outputs.digest_amd64 }}
|
||||||
digest_arm64: ${{ steps.image.outputs.digest_arm64 }}
|
digest_arm64: ${{ steps.image.outputs.digest_arm64 }}
|
||||||
|
@ -168,15 +162,15 @@ jobs:
|
||||||
- name: Create manifest list and push
|
- name: Create manifest list and push
|
||||||
working-directory: ${{ runner.temp }}/digests
|
working-directory: ${{ runner.temp }}/digests
|
||||||
run: |
|
run: |
|
||||||
DIGESTS=$(printf '${{ needs.build.outputs.image }}@sha256:%s ' *)
|
DIGESTS=$(printf '${{ needs.prepare.outputs.image }}@sha256:%s ' *)
|
||||||
docker buildx imagetools create -t ${{ needs.build.outputs.image }} ${DIGESTS}
|
docker buildx imagetools create -t ${{ needs.prepare.outputs.image }} ${DIGESTS}
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
id: image
|
id: image
|
||||||
run: |
|
run: |
|
||||||
# Inspect the image
|
# Inspect the image
|
||||||
docker buildx imagetools inspect ${{ needs.build.outputs.image }}
|
docker buildx imagetools inspect ${{ needs.prepare.outputs.image }}
|
||||||
docker buildx imagetools inspect ${{ needs.build.outputs.image }} --format "{{json .Manifest}}" > manifest
|
docker buildx imagetools inspect ${{ needs.prepare.outputs.image }} --format "{{json .Manifest}}" > manifest
|
||||||
|
|
||||||
# Calculate and print the digests
|
# Calculate and print the digests
|
||||||
digest_root=$(jq -r .digest manifest)
|
digest_root=$(jq -r .digest manifest)
|
||||||
|
@ -198,6 +192,7 @@ jobs:
|
||||||
# the container registry.
|
# the container registry.
|
||||||
provenance:
|
provenance:
|
||||||
needs:
|
needs:
|
||||||
|
- prepare # implied by merge, but required here to access image params
|
||||||
- merge
|
- merge
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -212,7 +207,7 @@ jobs:
|
||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v2.0.0
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v2.0.0
|
||||||
with:
|
with:
|
||||||
digest: ${{ needs.merge.outputs[format('digest_{0}', matrix.manifest_type)] }}
|
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 }}
|
registry-username: ${{ inputs.registry_user }}
|
||||||
secrets:
|
secrets:
|
||||||
registry-password: ${{ secrets.registry_token }}
|
registry-password: ${{ secrets.registry_token }}
|
||||||
|
@ -221,6 +216,7 @@ jobs:
|
||||||
check-reproducibility:
|
check-reproducibility:
|
||||||
if: ${{ inputs.reproduce }}
|
if: ${{ inputs.reproduce }}
|
||||||
needs:
|
needs:
|
||||||
|
- prepare # implied by merge, but required here to access image params
|
||||||
- merge
|
- merge
|
||||||
runs-on: ${{ matrix.platform.runs-on }}
|
runs-on: ${{ matrix.platform.runs-on }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -242,7 +238,7 @@ jobs:
|
||||||
--runtime \
|
--runtime \
|
||||||
docker \
|
docker \
|
||||||
--debian-archive-date \
|
--debian-archive-date \
|
||||||
${{ needs.merge.outputs.debian_archive_date }} \
|
${{ needs.prepare.outputs.debian_archive_date }} \
|
||||||
--platform \
|
--platform \
|
||||||
linux/${{ matrix.platform.name }} \
|
linux/${{ matrix.platform.name }} \
|
||||||
${{ needs.merge.outputs[format('digest_{0}', 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