builder/.gitea/workflows/push.yml

29 lines
632 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]
2023-09-19 11:44:59 +00:00
# container:
# image: harbor.rosti.cz/library/builder:38
# options: --privileged --security-opt seccomp=unconfined
2023-09-19 11:11:21 +00:00
steps:
- uses: actions/checkout@v3
- name: Login into registry
2023-09-19 11:56:16 +00:00
env:
2023-09-19 11:11:21 +00:00
REGISTRY: harbor.rosti.cz
2023-09-19 11:12:52 +00:00
USERNAME: robot_library+lib
2023-09-19 12:11:23 +00:00
PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
2023-09-19 11:11:21 +00:00
run: |
2023-09-19 11:12:52 +00:00
docker login -u "$USERNAME" -p "$PASSWORD" $REGISTRY
2023-09-19 11:11:21 +00:00
- name: Build
run: |
task build
- name: Push
run: |
task push