2024-04-04 23:01:59 +00:00
|
|
|
name: package-builder
|
|
|
|
run-name: package-builder
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- release/*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-04-05 20:37:21 +00:00
|
|
|
runs-on: kcrawford/dind
|
2024-04-04 23:01:59 +00:00
|
|
|
container:
|
2024-04-05 20:37:21 +00:00
|
|
|
image: kcrawford/dind:0.0.1
|
2024-04-04 23:01:59 +00:00
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
run: |
|
|
|
|
mkdir -p ~/.ssh
|
|
|
|
echo "${{ secrets.PI_GIT_KEY }}" | tr -d '\r' > ~/.ssh/id_ed25519
|
|
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
|
|
ssh-keyscan git.kcrawford.net >> ~/.ssh/known_hosts
|
|
|
|
git clone --branch ${GITHUB_REF_NAME} git@git.kcrawford.net:${{env.GITHUB_REPOSITORY}}.git .
|
|
|
|
|
|
|
|
- name: Inspect
|
|
|
|
run: |
|
|
|
|
env
|
2024-04-05 13:14:11 +00:00
|
|
|
mkdir ~/.docker
|
2024-04-05 13:11:05 +00:00
|
|
|
echo "${{ secrets.DOCKER_LOGIN }}" | base64 -d > ~/.docker/config.json
|
2024-04-04 23:01:59 +00:00
|
|
|
docker info
|
|
|
|
|
2024-04-05 12:43:38 +00:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2024-04-05 13:11:05 +00:00
|
|
|
docker buildx create --use
|
2024-04-05 18:49:14 +00:00
|
|
|
docker buildx build --no-cache --platform linux/amd64,linux/arm64 --output type=registry -t git.kcrawford.net/kcrawford/$(basename $(pwd)):${GITHUB_REF##*/} .
|