Skip to content

Commit

Permalink
fix(deploy.yaml): add Cache-Control header to curl commands to preven…
Browse files Browse the repository at this point in the history
…t caching of downloaded scripts and templates
  • Loading branch information
HyunSu1768 committed Oct 3, 2024
1 parent b9d36b4 commit acba5b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/gocd/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ pipelines:
arguments:
- -c
- |
curl -o runtime_setting_and_build.sh https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/script/runtime_setting_and_build.sh
curl -o template.json https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/pipelines/{{ .Values.environment }}/{{ .Values.name }}/template.json
curl -o -H "Cache-Control: no-cache" runtime_setting_and_build.sh https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/script/runtime_setting_and_build.sh
curl -o -H "Cache-Control: no-cache" template.json https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/pipelines/{{ .Values.environment }}/{{ .Values.name }}/template.json
chmod +x runtime_setting_and_build.sh
./runtime_setting_and_build.sh template.json
curl -o docker_build.sh https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/script/docker_build.sh
curl -o Dockerfile https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/pipelines/{{ .Values.environment }}/{{ .Values.name }}/Dockerfile
curl -o -H "Cache-Control: no-cache" docker_build.sh https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/script/docker_build.sh
curl -o -H "Cache-Control: no-cache" Dockerfile https://raw.githubusercontent.com/team-xquare/xquare-gitops-repo-v2/main/pipelines/{{ .Values.environment }}/{{ .Values.name }}/Dockerfile
chmod +x docker_build.sh
./docker_build.sh {{ .Values.environment }} {{ .Values.name }}
- deploy:
Expand Down

0 comments on commit acba5b8

Please sign in to comment.