alpine/.forgejo/workflows/release.yml
Bill Niblock 776e1472d8
All checks were successful
Release / Release (push) Successful in 10s
Clean-up a bit
2024-06-13 21:29:14 -04:00

42 lines
1.1 KiB
YAML

name: Release
on:
schedule:
- cron: "@weekly"
push:
branches:
- main
env:
REGISTRY: forge.niblock.tech
jobs:
release:
name: Release
runs-on: docker
container:
image: forge.niblock.tech/containers/alpine:build
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Login to the NibTech Container Registry
uses: https://code.forgejo.org/docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: niblock
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract repository metadata (tags, labels)
id: meta
uses: https://github.com/docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.GITHUB_REPOSITORY }}
- name: Build and publish latest container
uses: https://code.forgejo.org/docker/build-push-action@v5
with:
context: .docker/latest
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}