This creates a circular dependency, but avoids having to use the heavy Ubuntu image.
26 lines
No EOL
705 B
YAML
26 lines
No EOL
705 B
YAML
on: [push]
|
|
env:
|
|
REGISTRY: forgejo:3000
|
|
REGISTRY_IMAGE: forgejo:3000/Furnavia/builder
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: sif.g100.hornwitser.no:3000/furnavia/builder:latest
|
|
steps:
|
|
-
|
|
name: Authenticate
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
registry: ${{ env.REGISTRY }}
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags:
|
|
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
|
|
${{ env.REGISTRY_IMAGE }}:latest |