Skip to content

Commit 38f1a1b

Browse files
authored
ci: fix broken release workflow (#23)
1 parent ac2fd43 commit 38f1a1b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
name: Release
2+
23
on:
34
push:
45
branches:
56
- main
7+
68
jobs:
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: |

0 commit comments

Comments
 (0)