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

Commit 07998f1

Browse files
committed
Update gha
1 parent 116c02c commit 07998f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/cicd.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
release:
77

8+
permissions:
9+
packages: "write"
10+
811
jobs:
912
lint:
1013
runs-on: "ubuntu-20.04"
@@ -20,8 +23,10 @@ jobs:
2023
steps:
2124
- name: "Check out repository code"
2225
uses: "actions/checkout@v3"
23-
- name: "Build for branches"
26+
- name: "Build the image"
2427
run: "make tag=${{ github.ref_name }} build"
28+
- name: "Authenticate to ghcr.io"
29+
run: "echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin"
2530
- name: "Push the image to the repository"
2631
run: "make tag=${{ github.ref_name }} push"
2732
test:

0 commit comments

Comments
 (0)