builder/.gitea/workflows/push.yml

29 lines
529 B
YAML
Raw Normal View History

2023-09-19 11:11:21 +00:00
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