mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-31 23:26:16 +02:00
Prepare universal workflow
This commit is contained in:
parent
a66c7fa770
commit
b9ac53f9e6
27
.github/workflows/images_build.yml
vendored
27
.github/workflows/images_build.yml
vendored
@ -239,7 +239,7 @@ jobs:
|
|||||||
org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
||||||
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=registry,ref=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
type=registry,ref=docker.io/${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
cache-to: type=gha,mode=max,scope=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
cache-to: type=gha,mode=max,scope=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
|
|
||||||
- name: Sign the images with GitHub OIDC Token
|
- name: Sign the images with GitHub OIDC Token
|
||||||
@ -253,18 +253,18 @@ jobs:
|
|||||||
done
|
done
|
||||||
cosign sign --yes ${images}
|
cosign sign --yes ${images}
|
||||||
|
|
||||||
- name: Cache image digest
|
|
||||||
id: cache-image-digest
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ${{ steps.docker_build.outputs.digest }}
|
|
||||||
key: ${{ env.BASE_BUILD_NAME }}-${{ matrix.os }}
|
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.docker_build.outputs.digest }}
|
echo ${{ steps.docker_build.outputs.digest }}
|
||||||
echo "${{ steps.docker_build.outputs.digest }}" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
|
echo "${{ steps.docker_build.outputs.digest }}" > ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
|
||||||
|
|
||||||
|
- name: Cache image digest
|
||||||
|
id: cache-image-digest
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.os }}
|
||||||
|
key: ${{ env.BASE_BUILD_NAME }}-${{ matrix.os }}
|
||||||
|
|
||||||
- name: Upload SHA256 tag
|
- name: Upload SHA256 tag
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -372,6 +372,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: build-base_${{ matrix.os }}
|
name: build-base_${{ matrix.os }}
|
||||||
|
|
||||||
|
- name: Cache image digest
|
||||||
|
id: cache-image-digest
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: build-base_${{ matrix.os }}
|
||||||
|
key: build-base_${{ matrix.os }}
|
||||||
|
|
||||||
- name: Retrieve build-base:${{ matrix.os }} SHA256 tag
|
- name: Retrieve build-base:${{ matrix.os }} SHA256 tag
|
||||||
id: base_build
|
id: base_build
|
||||||
run: |
|
run: |
|
||||||
@ -394,7 +401,9 @@ jobs:
|
|||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
org.opencontainers.image.revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
||||||
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||||
cache-from: type=gha,scope=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
cache-from: |
|
||||||
|
type=gha,scope=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
|
type=registry,ref=docker.io/${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
cache-to: type=gha,mode=max,scope=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
cache-to: type=gha,mode=max,scope=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
|
|
||||||
- name: Sign the images with GitHub OIDC Token
|
- name: Sign the images with GitHub OIDC Token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user