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 11name : Release
2+
23on :
34 push :
45 branches :
56 - main
7+
68jobs :
79 build-tag-release :
810 name : Build, tag, and release Docker image
911 runs-on : ubuntu-latest
1012 steps :
1113 - name : Checkout repository
12- uses : actions/checkout@v2
14+ uses : actions/checkout@v4
15+
1316 - name : Setup release please
1417 uses : google-github-actions/release-please-action@v2
1518 id : release
@@ -18,15 +21,18 @@ jobs:
1821 release-type : simple
1922 changelog-path : CHANGELOG.md
2023 package-name : zap2xml
24+
2125 - name : Login into GitHub Container Registry
2226 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+
2429 - name : Build Docker image
2530 if : ${{ steps.release.outputs.release_created }}
2631 run : |
2732 docker build \
2833 -t "ghcr.io/${GITHUB_REPOSITORY}:${{ steps.release.outputs.tag_name }}" \
2934 -t "ghcr.io/${GITHUB_REPOSITORY}:latest" .
35+
3036 - name : Release Docker image
3137 if : ${{ steps.release.outputs.release_created }}
3238 run : |
You can’t perform that action at this time.
0 commit comments