Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Commit 876ce1b

Browse files
authored
ci: Output using docker type for use as base image (#23)
1 parent d4787d7 commit 876ce1b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
image: "ghcr.io/${{ github.repository }}"
1717
archive: "docker-php-api-${{ matrix.php }}.tar"
1818
steps:
19-
- uses: actions/checkout@v2
2019
- uses: docker/setup-buildx-action@v1
2120
- uses: docker/setup-qemu-action@v1
2221
- name: Generate branch Docker Image attributes
@@ -26,12 +25,11 @@ jobs:
2625
images: "${{ env.image }}"
2726
tags: "type=sha,suffix=-${{ matrix.php }}"
2827
- name: Build Docker Image
29-
id: build
3028
uses: docker/build-push-action@v2
3129
with:
3230
build-args: PHP=${{ matrix.php }}
3331
labels: "${{ steps.meta.outputs.labels }}"
34-
outputs: "type=tar,dest=${{ env.archive }}"
32+
outputs: "type=docker,dest=${{ env.archive }}"
3533
tags: "${{ steps.meta.outputs.tags }}"
3634
- name: Upload Docker Image as pipeline artifact
3735
uses: actions/upload-artifact@v2

.github/workflows/push.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,5 @@ jobs:
3333
uses: benjlevesque/short-sha@v1.2
3434
- name: Push Docker Image to Registry
3535
run: |
36-
docker import ${{ env.archive }} ${{ env.image }}:${{ env.tag }}
36+
docker load --import ${{ env.archive }}
3737
docker push --all-tags ${{ env.image }}
38-
env:
39-
tag: "sha-${{ steps.short.outputs.sha }}-${{ matrix.php }}"

0 commit comments

Comments
 (0)