29 lines
529 B
YAML
29 lines
529 B
YAML
|
name: Build and push
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [main]
|
||
|
workflow_dispatch: {}
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: [amd64, prod]
|
||
|
container:
|
||
|
image:
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Login into registry
|
||
|
envs:
|
||
|
REGISTRY: harbor.rosti.cz
|
||
|
USERNAME: robot_lib
|
||
|
PASSWORD:
|
||
|
from_secret: REGISTRY_TOKEN
|
||
|
run: |
|
||
|
docker login -u $USERNAME -p "$PASSWORD" $REGISTRY
|
||
|
- name: Build
|
||
|
run: |
|
||
|
task build
|
||
|
- name: Push
|
||
|
run: |
|
||
|
task push
|