Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move dev server image build into main CI workflow #141

Merged
merged 13 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/build_test_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,27 @@ jobs:
MININORCAL_OSM_PATH=${{ secrets.MININORCAL_OSM_PATH}}
MININORCAL_GTFS_PATH=${{ secrets.MININORCAL_GTFS_PATH}}

# Build the dev server + sandbox images used in functional test ahead of time
- name: build the server
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile.server
tags: "us.gcr.io/model-159019/gh:${{ github.sha }}-server-dev"
build-args: |
BASE_IMAGE=us.gcr.io/model-159019/gh:${{ github.sha }}-dev

- name: build the sandbox
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile.sandbox
tags: "us.gcr.io/model-159019/gh:${{ github.sha }}-server-sandbox"
build-args: |
BASE_IMAGE=us.gcr.io/model-159019/gh:${{ github.sha }}-dev

- name: run unit tests
run: |
docker run -t -d --name testrunner us.gcr.io/model-159019/gh:${{ github.sha }}-dev /bin/bash
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/functional-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,6 @@ jobs:
- name: Set temp directory env variable
run: echo "TMPDIR=$(mktemp -d)" >> $GITHUB_ENV

- name: build the server
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile.server
tags: "us.gcr.io/model-159019/gh:${{ github.sha }}-server-dev"
build-args: |
BASE_IMAGE=us.gcr.io/model-159019/gh:${{ github.sha }}-dev

- name: build the sandbox
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile.sandbox
tags: "us.gcr.io/model-159019/gh:${{ github.sha }}-server-sandbox"
build-args: |
BASE_IMAGE=us.gcr.io/model-159019/gh:${{ github.sha }}-dev

- name: Install golang
uses: actions/setup-go@v2
with:
Expand Down