Skip to content

Commit

Permalink
Use Chart.Version as container tag, remove /app from url (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongestNumber9 authored Aug 9, 2023
1 parent 6b8ba0d commit addf222
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upload_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ jobs:

- name: 'Build Image'
run: |
docker buildx build --output type=docker --tag ghcr.io/${{ env.REPO_LC }}/app:${{ github.event.release.tag_name }} --tag ghcr.io/${{ env.REPO_LC }}/app:latest .
docker push ghcr.io/${{ env.REPO_LC }}/app --all-tags
docker buildx build --output type=docker --tag ghcr.io/${{ env.REPO_LC }}:${{ github.event.release.tag_name }} --tag ghcr.io/${{ env.REPO_LC }}:latest .
docker push ghcr.io/${{ env.REPO_LC }} --all-tags
2 changes: 1 addition & 1 deletion k8s_01/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
name: host-var-lib-docker-containers
containers:
- name: kubelogreader
image: "{{.Values.image.repository}}/{{.Values.image.path}}:{{.Values.image.tag}}"
image: "{{.Values.image.repository}}/{{.Values.image.path}}:{{.Chart.Version}}"
imagePullPolicy: {{.Values.image.pullPolicy}}
securityContext:
privileged: true
Expand Down
5 changes: 2 additions & 3 deletions k8s_01/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
image:
# Image will be downloaded from {repository}/{path}:{tag}
# Image will be downloaded from {repository}/{path}:{Tag from Chart.Version}
repository: ghcr.io
path: teragrep/k8s_01/app
tag: latest
path: teragrep/k8s_01
pullPolicy: IfNotPresent

config:
Expand Down

0 comments on commit addf222

Please sign in to comment.