2023-08-05 12:37:39 +00:00
|
|
|
name: Image builder
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [released]
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-08-05 18:55:45 +00:00
|
|
|
container:
|
2023-08-05 20:04:28 +00:00
|
|
|
image: git.halis.io/athens-school/runner-images:debian12.1-node18
|
2023-08-05 18:55:45 +00:00
|
|
|
runs-on: [arm64]
|
2023-08-05 12:37:39 +00:00
|
|
|
|
|
|
|
steps:
|
2023-08-05 20:04:28 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2023-08-07 08:41:56 +00:00
|
|
|
- name: Wait
|
|
|
|
run: sleep 1000s
|
2023-08-07 08:38:16 +00:00
|
|
|
- name: Start shell build
|
|
|
|
run: ./build.sh
|
2023-08-05 23:41:02 +00:00
|
|
|
- name: Generate tag
|
|
|
|
id: tag_vars
|
|
|
|
run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
|
2023-08-05 20:16:19 +00:00
|
|
|
- name: Login to register
|
|
|
|
uses: https://gitea.com/docker/login-action@v2
|
|
|
|
with:
|
2023-08-05 23:48:02 +00:00
|
|
|
registry: https://git.halis.io
|
2023-08-05 23:57:04 +00:00
|
|
|
username: ${{ github.actor }}
|
2023-08-06 00:06:30 +00:00
|
|
|
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
|
2023-08-06 00:03:40 +00:00
|
|
|
|
2023-08-05 20:16:19 +00:00
|
|
|
|