builder/.forgejo/workflows/build.yaml
Hornwitser 8593a3aed7
Some checks failed
/ build (push) Failing after 22s
drop node dependency
2025-05-16 18:53:29 +02:00

31 lines
942 B
YAML

on: [push]
env:
REGISTRY: forge.hornwitser.no
REGISTRY_IMAGE: forge.hornwitser.no/furnavia/builder:${{ github.ref_name }}
jobs:
build:
runs-on: alpine
steps:
-
name: Install dependencies
shell: sh
run: |
apk add buildah git
-
name: Checkout repository
shell: sh
run: |
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} ${{ github.workspace }}
-
name: Authenticate with registry
shell: sh
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | buildah login ${{ env.REGISTRY }} --username "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
-
name: Build and push
shell: sh
run: |
id
${{ github.workspace }}/builder.sh ${{ env.REGISTRY_IMAGE }}
buildah push ${{ env.REGISTRY_IMAGE }}