30 lines
635 B
YAML
30 lines
635 B
YAML
name: Build and push
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [amd64, prod]
|
|
container:
|
|
image: harbor.rosti.cz/library/builder:38
|
|
options: --privileged --security-opt seccomp=unconfined
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Login into registry
|
|
envs:
|
|
REGISTRY: harbor.rosti.cz
|
|
USERNAME: robot_library+lib
|
|
PASSWORD:
|
|
from_secret: REGISTRY_TOKEN
|
|
run: |
|
|
docker login -u "$USERNAME" -p "$PASSWORD" $REGISTRY
|
|
- name: Build
|
|
run: |
|
|
task build
|
|
- name: Push
|
|
run: |
|
|
task push
|