2023-11-26 01:53:10 +00:00
|
|
|
name: Test build
|
|
|
|
|
2023-11-26 01:52:15 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2023-11-26 01:53:10 +00:00
|
|
|
|
2023-11-26 01:52:15 +00:00
|
|
|
jobs:
|
2023-11-26 02:02:55 +00:00
|
|
|
build-test:
|
2023-11-26 01:52:15 +00:00
|
|
|
runs-on: [moon, amd64]
|
|
|
|
container:
|
2023-11-26 02:03:41 +00:00
|
|
|
image: harbor.hq.rosti.cz/library/builder:38
|
2023-11-26 02:02:55 +00:00
|
|
|
env:
|
|
|
|
REPO: harbor.hq.rosti.cz
|
|
|
|
USERNAME: robot$rosti+rosti
|
2023-11-26 01:52:15 +00:00
|
|
|
# ports:
|
|
|
|
# - 80
|
|
|
|
# volumes:
|
|
|
|
# - my_docker_volume:/volume_mount
|
|
|
|
# options: --cpus 1
|
|
|
|
steps:
|
|
|
|
- name: Check for dockerenv file
|
2023-11-26 02:02:55 +00:00
|
|
|
run: |
|
|
|
|
echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO
|
|
|
|
task build
|
|
|
|
task test
|
|
|
|
|
2023-11-26 01:53:10 +00:00
|
|
|
|
|
|
|
|