2024-05-09 20:13:57 +00:00
|
|
|
name: "Build Runner Base"
|
2024-05-09 19:56:02 +00:00
|
|
|
|
|
|
|
on:
|
2024-12-31 16:10:09 +00:00
|
|
|
schedule:
|
2025-01-29 18:51:51 +01:00
|
|
|
- cron: "0 0 * * *"
|
2024-05-09 19:56:02 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2025-01-29 18:51:51 +01:00
|
|
|
- "master"
|
2024-05-09 19:56:02 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_act:
|
2025-01-29 18:51:51 +01:00
|
|
|
runs-on: "docker"
|
2025-01-29 15:12:30 +01:00
|
|
|
container:
|
|
|
|
image: docker:27.5.1-alpine3.21
|
2025-01-29 18:44:39 +01:00
|
|
|
services:
|
|
|
|
docker:
|
|
|
|
image: docker:27.5.1-dind-alpine3.21
|
2025-01-29 19:25:41 +01:00
|
|
|
options: --privileged
|
2025-01-29 19:23:36 +01:00
|
|
|
env:
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
2025-01-29 18:48:26 +01:00
|
|
|
env:
|
2025-01-29 19:26:56 +01:00
|
|
|
DOCKER_HOST: tcp://127.0.0.11:2375
|
2024-05-09 19:56:02 +00:00
|
|
|
steps:
|
2025-01-29 18:56:02 +01:00
|
|
|
- name: Check
|
|
|
|
run: docker ps
|
2025-01-29 15:50:19 +01:00
|
|
|
- name: Install Node
|
2025-01-29 15:57:26 +01:00
|
|
|
run: apk add nodejs
|
2025-01-29 18:39:37 +01:00
|
|
|
- name: Set up QEMU
|
2025-01-29 18:51:51 +01:00
|
|
|
uses: "https://git.euph.dev/actions/docker-setup-qemu@v3"
|
2025-01-29 18:28:51 +01:00
|
|
|
- name: Setup Buildx
|
2025-01-29 18:51:51 +01:00
|
|
|
uses: "https://git.euph.dev/actions/docker-setup-buildx@v3"
|
2024-05-09 19:56:02 +00:00
|
|
|
- name: Login to Registry
|
2025-01-29 18:51:51 +01:00
|
|
|
uses: "https://git.euph.dev/actions/docker-login@v3"
|
2024-05-09 19:56:02 +00:00
|
|
|
with:
|
|
|
|
registry: git.euph.dev
|
|
|
|
username: ${{ secrets.DEPLOY_USER }}
|
|
|
|
password: ${{ secrets.DEPLOY_SECRET }}
|
|
|
|
- name: Build and push act base image
|
|
|
|
id: build_act_base
|
2025-01-29 18:51:51 +01:00
|
|
|
uses: "https://git.euph.dev/actions/docker-build-push@v5"
|
2024-05-09 19:56:02 +00:00
|
|
|
with:
|
|
|
|
context: "{{defaultContext}}:images/actions/act"
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
git.euph.dev/actions/runner-basic:latest
|
2025-01-29 14:12:42 +01:00
|
|
|
git.euph.dev/actions/runner-basic:${{ forgejo.run_number }}
|