Add forgejo workflow to build image
This commit is contained in:
parent
6ab69c1341
commit
811f9feb14
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/build.yaml
Normal file
24
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
on: [push]
|
||||||
|
env:
|
||||||
|
REGISTRY: forgejo:3000
|
||||||
|
REGISTRY_IMAGE: forgejo:3000/Furnavia/builder
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue