parent
dcaef513af
commit
cf6dff34d2
2 changed files with 34 additions and 0 deletions
32
.forgejo/workflows/main.yml
Normal file
32
.forgejo/workflows/main.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
name: Build the Actrunner Container
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Git
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Docker
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker.io
|
||||
- name: Setup Builder
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.xmda.de
|
||||
username: ${{ vars.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASS }}
|
||||
- name: Generate timestamp
|
||||
run: echo "TIMESTAMP=$(date +'%s')" >> $GITHUB_ENV
|
||||
- name: Build the Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
git.xmda.de/seiichiro/actrunner:latest
|
||||
git.xmda.de/seiichiro/actrunner:build-${{ env.TIMESTAMP }}
|
2
Dockerfile
Normal file
2
Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
FROM docker.io/library/node:20-bookworm
|
||||
RUN apt-get update && apt-get install -y docker.io
|
Loading…
Add table
Reference in a new issue