Tanguy Herbron
74c815532d
Some checks reported warnings
Image builder / build (push) Has been cancelled
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Image builder
|
|
on:
|
|
release:
|
|
types: [released]
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
container:
|
|
image: git.halis.io/athens-school/runner-images:debian12.1-node18
|
|
runs-on: [arm64]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Wait
|
|
run: sleep 1000s
|
|
- name: Start shell build
|
|
run: ./build.sh
|
|
- name: Generate tag
|
|
id: tag_vars
|
|
run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
|
|
- name: Login to register
|
|
uses: https://gitea.com/docker/login-action@v2
|
|
with:
|
|
registry: https://git.halis.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: https://github.com/docker/build-push-action@v1
|
|
with:
|
|
push: true
|
|
file: images/debian/Dockerfile.12.1-node18
|
|
tags: git.halis.io/athens-school/runner-images:debian12.1-node18
|
|
|
|
|