Skip to content

Commit

Permalink
Infra update, rename branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
wraitii committed Nov 1, 2021
1 parent 5251f60 commit c273f73
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: deploy
on:
push:
branches: [ master ]
branches: [ main ]
env:
GKE_CLUSTER: sltech-briq-k8s-cluster
GKE_ZONE: europe-west3-c
Expand Down Expand Up @@ -54,6 +54,4 @@ jobs:
- name: Deploy
run: |-
echo "$(git status)"
echo "$(git status --porcelain)"
infra/deploy.sh
1 change: 0 additions & 1 deletion infra/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#@ load("@ytt:data", "data")
#@ load("@ytt:template", "template")
---
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 2 additions & 0 deletions infra/render.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -e

TAG=${TAG:=$(git rev-parse HEAD)}

mkdir -p infra/dist
ytt -f infra/schema.yaml -f infra/ --data-value "image_tag=$TAG" > infra/dist/manifests.yaml
echo "validating client-side"
Expand Down
5 changes: 3 additions & 2 deletions infra/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ set -e

npx vite build --outDir infra/dist/www/

NAME="briq-builder"
TAG=${TAG:=$(git rev-parse HEAD)}
echo "Building docker image, tagging $TAG"
IMAGE_NAME="europe-west3-docker.pkg.dev/healthy-saga-329513/sltech-briq/briq-builder:$TAG"
IMAGE_NAME="europe-west3-docker.pkg.dev/healthy-saga-329513/sltech-briq/$NAME:$TAG"

docker build infra/ -t "$IMAGE_NAME"
docker push "$IMAGE_NAME"
# Tag the image as 'latest' locally
docker tag "$IMAGE_NAME" briq-builder:latest
docker tag "$IMAGE_NAME" "$NAME:latest"
# Cleanup
docker image rm "$IMAGE_NAME"

0 comments on commit c273f73

Please sign in to comment.