Update workflow

This commit is contained in:
Max Isom 2024-08-17 22:51:33 -07:00
parent de56180036
commit 7f274980b5
No known key found for this signature in database

View file

@ -18,6 +18,16 @@ jobs:
attestations: write attestations: write
id-token: write id-token: write
steps: steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v1
- name: Download images - name: Download images
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@ -27,15 +37,30 @@ jobs:
run-id: ${{ github.event.workflow_run.id }} run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GH_PAT }} github-token: ${{ secrets.GH_PAT }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v1
- name: Load image - name: Load image
shell: bash shell: bash
run: | run: |
docker load -i /tmp/images/image-linux-amd64.tar docker load -i /tmp/images/image-linux-amd64.tar
docker load -i /tmp/images/image-linux-arm64.tar docker load -i /tmp/images/image-linux-arm64.tar
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GH_PAT }}
- name: Push images
working-directory: /tmp/digests
run: |
for file in ./*; do
hash=$(basename "$file")
docker push "sha256:$hash"
done
- name: Download Docker metadata - name: Download Docker metadata
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@ -64,22 +89,6 @@ jobs:
with: with:
path: /tmp/pull_request_number/pull_request_number/pull_request_number.txt path: /tmp/pull_request_number/pull_request_number/pull_request_number.txt
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GH_PAT }}
- name: Create manifest list and push - name: Create manifest list and push
working-directory: /tmp/digests working-directory: /tmp/digests
run: | run: |