31 lines
938 B
YAML
31 lines
938 B
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: Login to register
|
|
uses: https://gitea.com/docker/login-action@v2
|
|
with:
|
|
registry: git.halis.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- 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: Build and push
|
|
uses: https://gitea.com/docker/build-push-action@v4
|
|
with:
|
|
tags: git.halis.io/athens-school/runner-images:debian12.1-node18
|
|
#tags: ${{ steps.tag_vars.outputs.IMAGE_NAME }}:debian12.1-node18
|
|
|