-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7644f7
commit 0684274
Showing
6 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Docker develop build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
|
||
jobs: | ||
build-bvm-website-develop: | ||
uses: TrustlessComputer/tc-github-action-templates/.github/workflows/docker-build-and-push.yaml@main | ||
with: | ||
DOCKER_IMAGE_NAME: bvm-website | ||
DOCKERFILE_NAME: Dockerfile | ||
CONCURRENCY_GROUP: docker_build_develop | ||
RUNNER_TAG: ubuntu-latest | ||
secrets: | ||
GCLOUD_DEV_SERVICE_ACCOUNT_JSON: ${{ secrets.GCLOUD_DEV_SERVICE_ACCOUNT_JSON }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Docker cache build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
docker-cache: | ||
uses: TrustlessComputer/tc-github-action-templates/.github/workflows/docker-build-cache.yaml@main | ||
with: | ||
DOCKER_IMAGE_NAME: bvm-website | ||
DOCKERFILE_NAME: cache.Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Docker production build | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9].[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build-bvm-website-production: | ||
uses: TrustlessComputer/tc-github-action-templates/.github/workflows/docker-build-and-push.yaml@main | ||
with: | ||
DOCKER_IMAGE_NAME: bvm-website | ||
DOCKERFILE_NAME: Dockerfile | ||
CONCURRENCY_GROUP: docker_build_production | ||
RUNNER_TAG: ubuntu-latest | ||
secrets: | ||
GCLOUD_DEV_SERVICE_ACCOUNT_JSON: ${{ secrets.GCLOUD_DEV_SERVICE_ACCOUNT_JSON }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Docker Alpha staging build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'staging' | ||
|
||
jobs: | ||
build-bvm-website-staging: | ||
uses: TrustlessComputer/tc-github-action-templates/.github/workflows/docker-build-and-push.yaml@main | ||
with: | ||
DOCKER_IMAGE_NAME: bvm-website | ||
DOCKERFILE_NAME: Dockerfile | ||
CONCURRENCY_GROUP: docker_build_staging_alpha | ||
RUNNER_TAG: ubuntu-latest | ||
secrets: | ||
GCLOUD_DEV_SERVICE_ACCOUNT_JSON: ${{ secrets.GCLOUD_DEV_SERVICE_ACCOUNT_JSON }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
FROM node:18-alpine AS base | ||
FROM node:18-bullseye AS base | ||
|
||
# 1. Install dependencies only when needed | ||
FROM base AS deps | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat openssh git | ||
RUN git config --global url."https://github".insteadOf ssh://git@github | ||
|
||
WORKDIR /app | ||
|
||
# Install dependencies based on the preferred package manager | ||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ | ||
RUN yarn install | ||
|