Skip to content

Add deployment with Docker image in GKE #1

Add deployment with Docker image in GKE

Add deployment with Docker image in GKE #1

Workflow file for this run

name: Test build
on:
pull_request:
branches:
- main
jobs:
test-yarn-build:
name: Test yarn build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build
test-docker-build:
name: Test Docker build
runs-on: ubuntu-latest
steps:
- name: Build image with Docker
run: |-
docker build \
--tag "$IMAGE:$GITHUB_SHA" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.