This commit is contained in:
parent
c397e365dc
commit
9bd5aefd76
2 changed files with 10 additions and 19 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -5,12 +5,13 @@ on:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-test:
|
||||||
runs-on: [moon, amd64]
|
runs-on: [moon, amd64]
|
||||||
container:
|
container:
|
||||||
image: node:18
|
image: harbor.hq.rosti.cz/library/builder:39
|
||||||
# env:
|
env:
|
||||||
# NODE_ENV: development
|
REPO: harbor.hq.rosti.cz
|
||||||
|
USERNAME: robot$rosti+rosti
|
||||||
# ports:
|
# ports:
|
||||||
# - 80
|
# - 80
|
||||||
# volumes:
|
# volumes:
|
||||||
|
@ -18,6 +19,10 @@ jobs:
|
||||||
# options: --cpus 1
|
# options: --cpus 1
|
||||||
steps:
|
steps:
|
||||||
- name: Check for dockerenv file
|
- name: Check for dockerenv file
|
||||||
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
|
run: |
|
||||||
|
echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO
|
||||||
|
task build
|
||||||
|
task test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
|
@ -1,14 +0,0 @@
|
||||||
name: Image testing
|
|
||||||
|
|
||||||
on:
|
|
||||||
- push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: testing
|
|
||||||
run: |
|
|
||||||
make build
|
|
||||||
make test
|
|
Loading…
Reference in a new issue