Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit 91b4356

Browse files
committed
Update gha
1 parent 457a952 commit 91b4356

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/cicd.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
pull_request:
66
release:
77

8+
permissions:
9+
packages: "write"
10+
contents: "read"
11+
id-token: "write"
12+
813
jobs:
914
lint:
1015
runs-on: "ubuntu-20.04"
@@ -17,21 +22,11 @@ jobs:
1722
runs-on: "ubuntu-20.04"
1823
needs:
1924
- "lint"
20-
permissions:
21-
packages: "write"
22-
contents: "read"
23-
id-token: "write"
2425
steps:
2526
- name: "Check out repository code"
2627
uses: "actions/checkout@v3"
2728
- name: "Build the image"
2829
run: "make tag=${{ github.ref_name }} build"
29-
# - name: "Login to ghcr.io"
30-
# uses: "docker/login-action@v1"
31-
# with:
32-
# registry: "ghcr.io"
33-
# username: ${{ github.actor }}
34-
# password: ${{ secrets.GITHUB_TOKEN }}
3530
- name: "Login to ghcr.io"
3631
run: "echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u USERNAME --password-stdin"
3732
- name: "Push the image to the repository"

0 commit comments

Comments
 (0)