adding build images
All checks were successful
Test Actions (self-test) / Test Kubernetes actions (push) Successful in 8s
Test Actions (self-test) / Build tiny multi-arch image (push) Successful in 9s
Test Actions (self-test) / Test SSH deploy action (push) Successful in 15s
Build and Push Runner Images / Build Slim Runner Image (push) Successful in 1m24s
Build and Push Runner Images / Build Full Runner Image (push) Successful in 3m51s
All checks were successful
Test Actions (self-test) / Test Kubernetes actions (push) Successful in 8s
Test Actions (self-test) / Build tiny multi-arch image (push) Successful in 9s
Test Actions (self-test) / Test SSH deploy action (push) Successful in 15s
Build and Push Runner Images / Build Slim Runner Image (push) Successful in 1m24s
Build and Push Runner Images / Build Full Runner Image (push) Successful in 3m51s
This commit is contained in:
49
.gitea/workflows/build-images.yaml
Normal file
49
.gitea/workflows/build-images.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
name: Build and Push Runner Images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'images/**'
|
||||
- '.gitea/workflows/build-images.yaml'
|
||||
workflow_dispatch: {}
|
||||
|
||||
env:
|
||||
SLIM_IMAGE: git.ivanch.me/ivanch/runner-images
|
||||
FULL_IMAGE: git.ivanch.me/ivanch/runner-images
|
||||
|
||||
jobs:
|
||||
build-slim:
|
||||
name: Build Slim Runner Image
|
||||
runs-on: ubuntu-amd64
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push slim image
|
||||
uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main
|
||||
with:
|
||||
image: ${{ env.SLIM_IMAGE }}
|
||||
image_tag: slim
|
||||
build_context: images/slim
|
||||
build_dockerfile: Dockerfile
|
||||
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }}
|
||||
|
||||
build-full:
|
||||
name: Build Full Runner Image
|
||||
runs-on: ubuntu-amd64
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push full image
|
||||
uses: https://git.ivanch.me/ivanch/pipeline-actions/build-and-push@main
|
||||
with:
|
||||
image: ${{ env.FULL_IMAGE }}
|
||||
image_tag: full
|
||||
build_context: images/full
|
||||
build_dockerfile: Dockerfile
|
||||
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
ssh_key: ${{ secrets.SSH_KEY_DOCKERBUILD }}
|
||||
Reference in New Issue
Block a user