golang-http-header/.gitea/workflows/build-package.yaml
Kris Crawford f9f1dd6264
Some checks failed
package-builder / build (push) Successful in 2m1s
go-builder / build (push) Failing after 2s
noop change
2024-04-11 18:43:54 -04:00

34 lines
1004 B
YAML

name: package-builder
run-name: package-builder
on:
push:
branches:
- release/*
jobs:
build:
runs-on: kcrawford/dind
container:
image: kcrawford/dind:0.0.2
steps:
- name: Clone
run: |
mkdir -p ~/.ssh
echo "${{ secrets.LOCAL_SSH_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
mkdir ~/.docker
echo "${{ secrets.DOCKER_LOGIN }}" | base64 -d > ~/.docker/config.json
docker info
- name: Build
run: |
#while true; do sleep 180; done
docker buildx create --use
docker buildx build --no-cache --platform linux/amd64,linux/arm64 --output type=registry -t git.kcrawford.net/kcrawford/$(basename $(pwd)):${GITHUB_REF##*/} .