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

Commit a7db905

Browse files
authored
Update GHA #1
1 parent cc144c6 commit a7db905

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/cicd.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
permissions:
1111
packages: "write"
12-
contents: "read"
12+
contents: "write"
1313
id-token: "write"
1414

1515
jobs:
@@ -48,22 +48,19 @@ jobs:
4848
run: "make test"
4949
deploy:
5050
runs-on: "ubuntu-20.04"
51-
# needs:
52-
# - "test"
53-
# if: "${{ github.event_name == 'release' }}"
51+
needs:
52+
- "test"
53+
if: "${{ github.event_name == 'release' }}"
5454
steps:
5555
- name: "Check out repository code"
5656
uses: "actions/checkout@v3"
57+
with:
58+
ref: "main"
5759
- name: "Update the image tag"
5860
run: "make tag=${{ github.ref_name }} update-tag"
59-
- name: debug
60-
run: cat ./kubernetes/values.yaml
61-
- name: debug
62-
run: git diff
6361
- name: "Commit changes"
64-
run: >
65-
git config --global user.name ${{ github.actor }};
66-
git config --global user.email ${{ github.actor }}@github.action;
67-
git checkout -b test02;
68-
git commit -am "Updating the Docker image tag";
69-
git push origin test02;
62+
run: |
63+
git config user.name github-actions
64+
git config user.email [email protected]
65+
git commit -am "Updating the Docker image tag"
66+
git push origin main

0 commit comments

Comments
 (0)