43 lines
1.3 KiB
YAML
Raw Normal View History

2023-08-05 14:37:39 +02:00
name: Image builder
on:
release:
types: [released]
push:
jobs:
build:
2023-08-05 20:55:45 +02:00
container:
2023-08-05 22:04:28 +02:00
image: git.halis.io/athens-school/runner-images:debian12.1-node18
2023-08-05 20:55:45 +02:00
runs-on: [arm64]
2023-08-05 14:37:39 +02:00
steps:
2023-08-05 22:04:28 +02:00
- name: Checkout repository
uses: actions/checkout@v3
2023-08-06 01:41:02 +02: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-06 18:43:30 +02:00
- name: Wait
run: sleep 1000s
2023-08-06 18:08:56 +02:00
- name: Shell build
run: |
docker login git.halis.io -u therbron -p ${{ secrets.GITHUB_TOKEN }}
docker pull ubuntu:latest
2023-08-06 18:15:54 +02:00
docker tag ubuntu:latest git.halis.io/therbron/runner-images:ubuntu
docker push git.halis.io/therbron/runner-images:ubuntu
2023-08-05 22:16:19 +02:00
- name: Login to register
uses: https://gitea.com/docker/login-action@v2
with:
2023-08-06 01:48:02 +02:00
registry: https://git.halis.io
2023-08-06 01:57:04 +02:00
username: ${{ github.actor }}
2023-08-06 02:06:30 +02:00
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
push: true
file: images/debian/Dockerfile.12.1-node18
tags: git.halis.io/athens-school/runner-images:debian12.1-node18
2023-08-06 02:03:40 +02:00
2023-08-05 22:16:19 +02:00