feat(ci): set specific tags for images
Some checks failed
functions / build (push) Failing after 1m28s
Some checks failed
functions / build (push) Failing after 1m28s
This commit is contained in:
parent
95d08e57ce
commit
be35a786a9
5 changed files with 27 additions and 5 deletions
|
@ -39,9 +39,17 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
spin registry push --build code.icb4dc0.de/infrastructure/functions/comics
|
spin registry push --build code.icb4dc0.de/infrastructure/functions/comics:${{ github.sha }}
|
||||||
working-directory: comics
|
working-directory: comics
|
||||||
|
|
||||||
|
- name: Update image reference
|
||||||
|
run: |
|
||||||
|
kustomize edit set image comics=code.icb4dc0.de/infrastructure/functions/comics:${{ github.sha }}
|
||||||
|
git add kustomization.yaml
|
||||||
|
git commit -m "chore(deploy): update comics image reference"
|
||||||
|
git push
|
||||||
|
working-directory: deploy
|
||||||
|
|
||||||
- name: Upsert Argo App
|
- name: Upsert Argo App
|
||||||
run: |
|
run: |
|
||||||
argocd app create functions -f deploy/argo-app.yaml --upsert --server argo-cd-argocd-server.argo-system.svc --auth-token ${{ secrets.ARGOCD_TOKEN }} --plaintext
|
argocd app create functions -f deploy/argo-app.yaml --upsert --server argo-cd-argocd-server.argo-system.svc --auth-token ${{ secrets.ARGOCD_TOKEN }} --plaintext
|
||||||
|
|
|
@ -21,7 +21,8 @@ type MonkeyUserEntry struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImageReference struct {
|
type Comic struct {
|
||||||
|
Title string `json:"title"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +85,9 @@ func monkeyUserComic(w http.ResponseWriter, re *http.Request, _ httprouter.Param
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var ref ImageReference
|
ref := Comic{
|
||||||
|
Title: entry.Title,
|
||||||
|
}
|
||||||
|
|
||||||
comicDoc.Find("div.content > p > img").Each(func(_ int, s *goquery.Selection) {
|
comicDoc.Find("div.content > p > img").Each(func(_ int, s *goquery.Selection) {
|
||||||
for _, node := range s.Nodes {
|
for _, node := range s.Nodes {
|
||||||
|
|
|
@ -3,6 +3,6 @@ kind: SpinApp
|
||||||
metadata:
|
metadata:
|
||||||
name: comics
|
name: comics
|
||||||
spec:
|
spec:
|
||||||
image: "code.icb4dc0.de/infrastructure/functions/comics:latest"
|
image: "comics"
|
||||||
executor: containerd-shim-spin
|
executor: containerd-shim-spin
|
||||||
replicas: 2
|
replicas: 2
|
||||||
|
|
|
@ -3,8 +3,16 @@ kind: Kustomization
|
||||||
|
|
||||||
namespace: functions
|
namespace: functions
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: comics
|
||||||
|
newName: code.icb4dc0.de/infrastructure/functions/comics
|
||||||
|
newTag: latest
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- resources/namespace.yaml
|
- resources/namespace.yaml
|
||||||
- resources/executor.yaml
|
- resources/executor.yaml
|
||||||
- resources/routes.yaml
|
- resources/routes.yaml
|
||||||
- apps/comics.yaml
|
- apps/comics.yaml
|
||||||
|
|
||||||
|
configurations:
|
||||||
|
- kustomizeconfig/spinapp.yaml
|
||||||
|
|
3
deploy/kustomizeconfig/spinapp.yaml
Normal file
3
deploy/kustomizeconfig/spinapp.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
images:
|
||||||
|
- path: spec/image
|
||||||
|
kind: SpinApp
|
Loading…
Add table
Reference in a new issue