@@ -18,29 +18,29 @@ jobs:
18
18
image : ${{steps.img.outputs.name}}@${{steps.build.outputs.digest}}
19
19
steps :
20
20
- name : Checkout
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
22
22
23
23
- id : img
24
24
name : Generate image name
25
- run : name="$(echo "ghcr.io/${{github.repository_owner}}/northstar-dedicated-dev" | tr "[:upper:]" "[:lower:]")"; echo "${name}"; echo "::set-output name=name:: ${name}"
25
+ run : name="$(echo "ghcr.io/${{github.repository_owner}}/northstar-dedicated-dev" | tr "[:upper:]" "[:lower:]")"; echo "${name}"; echo "name=${name}" >> $GITHUB_OUTPUT
26
26
27
27
- id : tags
28
28
name : Generate tags
29
29
run : ./scripts/mktag.sh ${{steps.img.outputs.name}} dev-git
30
30
31
31
- name : Set up Docker Buildx
32
- uses : docker/setup-buildx-action@v1
32
+ uses : docker/setup-buildx-action@v2
33
33
34
34
- name : Login to GitHub Container Registry
35
- uses : docker/login-action@v1
35
+ uses : docker/login-action@v2
36
36
with :
37
37
registry : ghcr.io
38
38
username : ${{github.actor}}
39
39
password : ${{secrets.GITHUB_TOKEN}}
40
40
41
41
- id : build
42
42
name : Build and push
43
- uses : docker/build-push-action@v2
43
+ uses : docker/build-push-action@v3
44
44
with :
45
45
context : src
46
46
push : true
69
69
actions : read
70
70
contents : read
71
71
packages : write
72
- environment :
72
+ environment :
73
73
name : server-docker
74
74
url : https://${{needs.server-docker.outputs.image}}
75
75
concurrency :
@@ -79,26 +79,26 @@ jobs:
79
79
- server-docker
80
80
steps :
81
81
- name : Checkout
82
- uses : actions/checkout@v2
82
+ uses : actions/checkout@v3
83
83
84
84
- id : img
85
85
name : Generate image name
86
- run : name="$(echo "ghcr.io/${{github.repository_owner}}/northstar-dedicated" | tr "[:upper:]" "[:lower:]")"; echo "${name}"; echo "::set-output name=name:: ${name}"
86
+ run : name="$(echo "ghcr.io/${{github.repository_owner}}/northstar-dedicated" | tr "[:upper:]" "[:lower:]")"; echo "${name}"; echo "name=${name}" >> $GITHUB_OUTPUT
87
87
88
88
- id : tags
89
89
name : Generate tags
90
90
run : ./scripts/mktag.sh ${{steps.img.outputs.name}} stable-git stable
91
91
92
92
- name : Login to GitHub Container Registry
93
- uses : docker/login-action@v1
93
+ uses : docker/login-action@v2
94
94
with :
95
95
registry : ghcr.io
96
96
username : ${{github.actor}}
97
97
password : ${{secrets.GITHUB_TOKEN}}
98
98
99
99
- name : Pull Docker image
100
100
run : docker pull ${{needs.server-docker.outputs.image}}
101
-
101
+
102
102
- name : Tag Docker image
103
103
run : for tag in $(echo "${{steps.tags.outputs.tags}}" | tr "," " "); do docker tag ${{needs.server-docker.outputs.image}} ${tag}; done
104
104
0 commit comments