This repository was archived by the owner on Sep 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 16
16
image : " ghcr.io/${{ github.repository }}"
17
17
archive : " docker-php-api-${{ matrix.php }}.tar"
18
18
steps :
19
- - uses : actions/checkout@v2
20
19
- uses : docker/setup-buildx-action@v1
21
20
- uses : docker/setup-qemu-action@v1
22
21
- name : Generate branch Docker Image attributes
@@ -26,12 +25,11 @@ jobs:
26
25
images : " ${{ env.image }}"
27
26
tags : " type=sha,suffix=-${{ matrix.php }}"
28
27
- name : Build Docker Image
29
- id : build
30
28
uses : docker/build-push-action@v2
31
29
with :
32
30
build-args : PHP=${{ matrix.php }}
33
31
labels : " ${{ steps.meta.outputs.labels }}"
34
- outputs : " type=tar ,dest=${{ env.archive }}"
32
+ outputs : " type=docker ,dest=${{ env.archive }}"
35
33
tags : " ${{ steps.meta.outputs.tags }}"
36
34
- name : Upload Docker Image as pipeline artifact
37
35
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 33
33
uses : benjlevesque/short-sha@v1.2
34
34
- name : Push Docker Image to Registry
35
35
run : |
36
- docker import ${{ env.archive }} ${{ env.image }}:${{ env.tag }}
36
+ docker load -- import ${{ env.archive }}
37
37
docker push --all-tags ${{ env.image }}
38
- env :
39
- tag : " sha-${{ steps.short.outputs.sha }}-${{ matrix.php }}"
You can’t perform that action at this time.
0 commit comments