Skip to content

Commit

Permalink
Update image tags in Kubernetes deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Feb 5, 2024
1 parent 58894b7 commit 193e9b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
run: |
TAG="${{ steps.latest_tag.outputs.tag }}"
sed -i "s|flagro/phrinifluent_web:latest|flagro/phrinifluent_web:$TAG|g" ./k8s/web/deployment.yml
sed -i "s|flagro/phrinifluent_web:latest|flagro/phrinifluent_web:$TAG|g" ./k8s/jobs/collectstatic.yml
sed -i "s|flagro/phrinifluent_web:latest|flagro/phrinifluent_web:$TAG|g" ./k8s/jobs/createadmin.yml
sed -i "s|flagro/phrinifluent_web:latest|flagro/phrinifluent_web:$TAG|g" ./k8s/jobs/migrate.yml
- name: Deploy to Kubernetes
run: |
Expand Down
2 changes: 1 addition & 1 deletion k8s/jobs/collectstatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
spec:
containers:
- name: phrinifluent-collectstatic
image: ghcr.io/flagro/phrinifluentbackend:main
image: ghcr.io/flagro/phrinifluentbackend:latest
command: ["python", "manage.py", "collectstatic", "--noinput"]
envFrom:
- secretRef:
Expand Down
2 changes: 1 addition & 1 deletion k8s/jobs/createadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
spec:
containers:
- name: phrinifluent-createadmin
image: ghcr.io/flagro/phrinifluentbackend:main
image: ghcr.io/flagro/phrinifluentbackend:latest
command: ["python", "manage.py", "createadmin"]
envFrom:
- secretRef:
Expand Down
2 changes: 1 addition & 1 deletion k8s/jobs/migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
spec:
containers:
- name: phrinifluent-migrate
image: ghcr.io/flagro/phrinifluentbackend:main
image: ghcr.io/flagro/phrinifluentbackend:latest
command: ["python", "manage.py", "migrate"]
envFrom:
- secretRef:
Expand Down

0 comments on commit 193e9b3

Please sign in to comment.