Skip to content

Commit 78d80ff

Browse files
committed
Update Docker registry login and commit gitops/ with updated k8s specs
1 parent b5f9e07 commit 78d80ff

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: docker build . --file Dockerfile --tag $IMAGE_NAME
5656

5757
- name: Log into registry
58-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
58+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
5959

6060
- name: version output
6161
id: version
@@ -73,7 +73,7 @@ jobs:
7373
7474
- name: Push image
7575
run: |
76-
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
76+
IMAGE_ID=ghcr.io/${{ github.repository }}/$IMAGE_NAME
7777
7878
# Change all uppercase to lowercase
7979
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
@@ -83,7 +83,11 @@ jobs:
8383
8484
docker tag $IMAGE_NAME $IMAGE_ID:${{ steps.version.outputs.image_tag }}
8585
docker push $IMAGE_ID:${{ steps.version.outputs.image_tag }}
86-
86+
87+
## generating helm charts as this artifact is not checked-in
88+
- name: Create required directories
89+
run: mkdir -p .appcd/charts && chmod 777 .appcd -R
90+
8791
- name: run appCD
8892
run: |
8993
docker run --rm \
@@ -105,5 +109,5 @@ jobs:
105109
git config user.name github-actions
106110
git config user.email github-actions@github.com
107111
git add ./gitops
108-
git commit -m "Update dogeapi.yaml"
112+
git commit -m "chore: update gitops/ with updated k8s specs"
109113
git push

0 commit comments

Comments
 (0)