chore: remove gitops update step (handled server-side)
This commit is contained in:
parent
287be47598
commit
b2856f49c1
2 changed files with 2 additions and 35 deletions
|
|
@ -23,38 +23,3 @@ steps:
|
|||
skip_tls_verify: true
|
||||
platforms: linux/amd64
|
||||
cache: false
|
||||
|
||||
- name: update-gitops
|
||||
image: alpine/git:latest
|
||||
environment:
|
||||
GHCR_TOKEN:
|
||||
from_secret: GHCR_TOKEN
|
||||
GHCR_USERNAME:
|
||||
from_secret: GHCR_USERNAME
|
||||
GITOPS_REPO_URL:
|
||||
from_secret: GITOPS_REPO_URL
|
||||
commands:
|
||||
- |
|
||||
set -e
|
||||
echo "Updating GitOps for nxtgauge-frontend-solid"
|
||||
git clone https://${GHCR_USERNAME}:${GHCR_TOKEN}@${GITOPS_REPO_URL} /tmp/gitops
|
||||
cd /tmp/gitops
|
||||
git checkout main
|
||||
FRONTEND_OVERLAY="apps/nxtgauge-frontend-solid/overlays/prod"
|
||||
if [ -f "${FRONTEND_OVERLAY}/kustomization.yaml" ]; then
|
||||
sed -i "s|image: registry.nxtgauge.com:5000/nxtgauge-frontend-solid:.*|image: registry.nxtgauge.com:5000/nxtgauge-frontend-solid:${CI_COMMIT_SHA}|" \
|
||||
${FRONTEND_OVERLAY}/kustomization.yaml
|
||||
echo "Updated frontend image to ${CI_COMMIT_SHA}"
|
||||
fi
|
||||
if ! git diff --quiet; then
|
||||
git config user.name "Woodpecker CI"
|
||||
git config user.email "woodpecker@nxtgauge.com"
|
||||
git add -A
|
||||
git commit -m "ci: update nxtgauge-frontend-solid to ${CI_COMMIT_SHA:0:8}"
|
||||
git push origin main
|
||||
echo "Pushed GitOps update"
|
||||
else
|
||||
echo "No changes to push"
|
||||
fi
|
||||
when:
|
||||
status: success
|
||||
|
|
|
|||
|
|
@ -150,3 +150,5 @@ vinxi starting dev server
|
|||
6:31:49 PM [vite] (client) page reload .woodpecker.yml
|
||||
6:44:02 PM [vite] (ssr) page reload .woodpecker.yml
|
||||
6:44:02 PM [vite] (client) page reload .woodpecker.yml
|
||||
6:52:12 PM [vite] (ssr) page reload .woodpecker.yml
|
||||
6:52:12 PM [vite] (client) page reload .woodpecker.yml
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue