Skip to content

Commit 9a71793

Browse files
Add test pipeline
1 parent 60bcdab commit 9a71793

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# TODO:
2+
# 1. Create PAT with `read:packages` and `write:packages` see https://docs.github.com/en/free-pro-team@latest/packages/guides/migrating-to-github-container-registry-for-docker-images#authenticating-with-the-container-registry
3+
# 2. Create CR_PAT variable under Settings / Secrets
4+
5+
name: Docker
6+
7+
env:
8+
FETCHER_IMAGE_VERSION: 3.15.0
9+
BASE_IMAGE_VERSION: commit-f2d623ca9d270c2ce8560d2ca0f9ce71b105aff2 # See https://hub.docker.com/r/gitpod/workspace-base/tags
10+
11+
# NOTE: DO NOT CHANGE THIS IS TMP IMAGE NAME
12+
IMAGE_NAME: image
13+
14+
jobs:
15+
# Run tests.
16+
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
17+
test:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Run tests
24+
run: |
25+
docker build . \
26+
--build-arg FETCHER_IMAGE_VERSION=${FETCHER_IMAGE_VERSION} \
27+
--build-arg BASE_IMAGE_VERSION=${BASE_IMAGE_VERSION} \
28+
--file Dockerfile --tag $IMAGE_NAME

0 commit comments

Comments
 (0)