Add custom runner image with ansible, terraform, community.docker
This commit is contained in:
27
.gitea/workflows/build-runner.yml
Normal file
27
.gitea/workflows/build-runner.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Build Runner Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'runner/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea registry
|
||||
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.lunarfront.tech -u ryan --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
docker build -t git.lunarfront.tech/ryan/runner:latest runner/
|
||||
docker push git.lunarfront.tech/ryan/runner:latest
|
||||
|
||||
- name: Logout
|
||||
if: always()
|
||||
run: docker logout git.lunarfront.tech
|
||||
Reference in New Issue
Block a user