-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 811 Bytes
/
test.yml
File metadata and controls
31 lines (24 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# TODO:
# 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
# 2. Create CR_PAT variable under Settings / Secrets
name: TEST
on:
push:
branches:
- main
env:
FETCHER_IMAGE_VERSION: ""
BASE_IMAGE_VERSION: ""
# NOTE: DO NOT CHANGE THIS THIS IS TMP IMAGE NAME
IMAGE_NAME: image
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
docker build . \
--build-arg FETCHER_IMAGE_VERSION=${FETCHER_IMAGE_VERSION} \
--build-arg BASE_IMAGE_VERSION=${BASE_IMAGE_VERSION} \
--file Dockerfile --tag $IMAGE_NAME