This commit is contained in:
parent
776e1472d8
commit
b662e6e885
1 changed files with 40 additions and 0 deletions
40
.forgejo/workflows/container-build.yml
Normal file
40
.forgejo/workflows/container-build.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: forge.niblock.tech
|
||||
REGISTRY_USERNAME: ${{ github.actor }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
|
||||
REGISTRY_IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: https://forge.niblock.tech/actions/checkout@v4
|
||||
|
||||
- name: Login to the GitHub Container Registry
|
||||
uses: https://forge.niblock.tech/actions/docker-login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ env.REGISTRY_USERNAME }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Extract repository metadata (tags, labels)
|
||||
id: meta
|
||||
uses: https://forge.niblock.tech/actions/docker-metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}
|
||||
|
||||
- name: Build and publish Alpine Latest
|
||||
uses: https://forge.niblock.tech/actions/docker-build-push-action@v6
|
||||
with:
|
||||
context: .docker/build
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}:latest
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
Add table
Add a link
Reference in a new issue