32 lines
751 B
YAML
32 lines
751 B
YAML
name: Build Runner Image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'runner/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker:24
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Gitea registry
|
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.lunarfront.tech -u ryan --password-stdin
|
|
|
|
- name: Build and push
|
|
run: |
|
|
docker build -t git.lunarfront.tech/ryan/ci-runner:latest runner/
|
|
docker push git.lunarfront.tech/ryan/ci-runner:latest
|
|
|
|
- name: Logout
|
|
if: always()
|
|
run: docker logout git.lunarfront.tech
|