Skip to content

Commit eae57e6

Browse files
committed
Add: manifest tag updates in github actions
1 parent 0691d59 commit eae57e6

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

.github/workflows/build-deploy.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,32 @@ jobs:
5353
push: true
5454
tags: ${{ steps.meta.outputs.tags }}
5555
labels: ${{ steps.meta.outputs.labels }}
56+
57+
# - name: update image tags in k8s manifests
58+
# uses: fjogeleit/yaml-update-action@v0.9.0
59+
# with:
60+
# valueFile: 'kubernetes/base/deployment.yaml'
61+
# propertyPath: 'spec.template.spec.containers[0].image'
62+
# value: ghcr.io/robalb/morsechat:sha-${{ github.sha }}
63+
# updateFile: true
64+
# commitChange: false
65+
66+
- name: update image tags in compose-prod
67+
uses: fjogeleit/yaml-update-action@v0.9.0
68+
with:
69+
valueFile: 'compose-prod/morsechat-go/docker-compose.yml'
70+
propertyPath: 'services.morse.image'
71+
value: ghcr.io/robalb/morsechat:sha-${{ github.sha }}
72+
updateFile: true
73+
commitChange: false
74+
75+
- name: Commit changes
76+
run: |
77+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
78+
git config --local user.name "github-actions[bot]"
79+
git commit -am "Updated image tags in the app manifests"
80+
81+
- name: Push changes
82+
uses: ad-m/github-push-action@v0.6.0
83+
with:
84+
branch: ${{ github.ref }}

docs/roadmap.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
# week 3
3-
- [] clean files: add .dockerignore, and remove home.html
4-
- [] create docker container
5-
- [] create build pipeline with github actions
6-
- [] deploy test version under test domain
7-
- [] db migration, launch to prod
3+
- [] add .dockerignore
4+
- [x] clean files: and remove home.html
5+
- [x] create docker container
6+
- [x] create build pipeline with github actions
7+
- [x] deploy test version under test domain
8+
- [x] db migration, launch to prod
89
- [] integrate ip-only fingerprint
910
- [] add ip-only fingerprint to ws client struct, use it for
1011
a better chamber functionality

0 commit comments

Comments
 (0)