File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
7
+
6
8
jobs :
7
9
build-tag-release :
8
10
name : Build, tag, and release Docker image
9
11
runs-on : ubuntu-latest
10
12
steps :
11
13
- name : Checkout repository
12
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v4
15
+
13
16
- name : Setup release please
14
17
uses : google-github-actions/release-please-action@v2
15
18
id : release
@@ -18,15 +21,18 @@ jobs:
18
21
release-type : simple
19
22
changelog-path : CHANGELOG.md
20
23
package-name : zap2xml
24
+
21
25
- name : Login into GitHub Container Registry
22
26
if : ${{ steps.release.outputs.release_created }}
23
- run : echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
27
+ run : echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
28
+
24
29
- name : Build Docker image
25
30
if : ${{ steps.release.outputs.release_created }}
26
31
run : |
27
32
docker build \
28
33
-t "ghcr.io/${GITHUB_REPOSITORY}:${{ steps.release.outputs.tag_name }}" \
29
34
-t "ghcr.io/${GITHUB_REPOSITORY}:latest" .
35
+
30
36
- name : Release Docker image
31
37
if : ${{ steps.release.outputs.release_created }}
32
38
run : |
You can’t perform that action at this time.
0 commit comments