File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 5
5
types : [published]
6
6
7
7
jobs :
8
- tags :
8
+ release-contaienr :
9
9
runs-on : ubuntu-latest
10
- outputs :
11
- tags : ${{ steps.tags.outputs.tags }}
12
10
steps :
13
11
- name : Compile tag list
14
12
id : tags
15
13
run : |
16
14
TAG=${GITHUB_REF/refs\/tags\//}
17
- PREFIX=ghcr.io/laminas/laminas-continuous-integration
15
+ PREFIX=ghcr.io/laminas/laminas-ci-matrix
18
16
MAJOR="${PREFIX}:$(echo ${TAG} | cut -d. -f1)"
19
17
MINOR="${MAJOR}.$(echo ${TAG} | cut -d. -f2)"
20
18
PATCH="${PREFIX}:${TAG}"
21
- echo "::set-output name=tags::${MAJOR}%0A ${MINOR}%0A ${PATCH}"
19
+ echo "::set-output name=tags::[\" ${MAJOR}\",\" ${MINOR}\",\" ${PATCH}\"] "
22
20
23
- release-container :
24
- runs-on : ubuntu-latest
25
- needs : [tags]
26
- steps :
27
21
- name : Checkout
28
22
uses : actions/checkout@v2
23
+
29
24
- name : Setup QEMU
30
25
uses : docker/setup-qemu-action@v1
26
+
31
27
- name : Setup Docker Buildx
32
28
uses : docker/setup-buildx-action@v1
29
+
33
30
- name : Login to GitHub Container Registry
34
31
uses : docker/login-action@v1
35
32
with :
36
33
registry : ghcr.io
37
34
username : ${{ secrets.CONTAINER_USERNAME }}
38
35
password : ${{ secrets.CONTAINER_PAT }}
36
+
39
37
- name : Build and push
40
38
uses : docker/build-push-action@v2
41
39
with :
42
40
context : .
43
41
file : ./Dockerfile
44
42
platforms : linux/amd64
45
43
push : true
46
- tags : ${{ needs.tags.outputs.tags }}
47
-
44
+ tags : ${{ join(fromJSON(steps.tags.outputs.tags), "\n") }}
You can’t perform that action at this time.
0 commit comments