Skip to content

Commit

Permalink
CI, Fix and simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Mar 20, 2024
1 parent 1861c27 commit e88b654
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ jobs:
# image to tar
outputs: type=local,dest=./${{ env.OS }}-image.tar
- name: Image ID Output
run: echo "${{ steps.buildx.outputs.imageid }}" > "${{ env.OS }}-image.id"
run: echo "${{ steps.buildx.outputs.imageid }}" > "${{ env.OS }}-image-id.txt"
- name: Upload image id
uses: actions/upload-artifact@v4
with:
name: ${{ env.OS }}-image-id
path: ${{ env.OS }}-image.id
name: ${{ env.OS }}-image-id.txt
path: ${{ env.OS }}-image-id.txt
- name: Upload image tar
uses: actions/upload-artifact@v4
with:
name: ${{ env.OS }}-image
name: ${{ env.OS }}-image.tar
path: ${{ env.OS }}-image.tar
tag-merge:
permissions:
Expand All @@ -77,26 +77,19 @@ jobs:
needs: build

steps:
- name: Download image id
- name: Download image artifacts
uses: actions/download-artifact@v4
with:
name: amd64-image.id
path: amd64-image.id
- name: Download image id
uses: actions/download-artifact@v4
with:
name: arm64-image.id
path: arm64-image.id
- name: Download image tar
uses: actions/download-artifact@v4
with:
name: amd64-image
path: amd64-image.tar
- name: Download image tar
uses: actions/download-artifact@v4
with:
name: arm64-image
path: arm64-image.tar
name: |
amd64-image-id.txt
arm64-image-id.txt
amd64-image.tar
arm64-image.tar
path: |
amd64-image-id.txt
arm64-image-id.txt
amd64-image.tar
arm64-image.tar
- name: Set image id output
id: imageid
run: |
Expand Down

0 comments on commit e88b654

Please sign in to comment.