alpine/.forgejo/workflows/release.yml
vagabond 2721ceb82c
Some checks failed
Release / Release (push) Failing after 5s
Update Actions to try Buildah actions
2024-04-19 19:09:46 +00:00

39 lines
No EOL
1 KiB
YAML

name: Release
on:
schedule:
- cron: "@weekly"
push:
branches:
- main
env:
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: actions/checkout@v4
- name: Build the container image using Buildah
id: build-image
uses: https://forge.niblock.tech/actions/buildah-build@v2
with:
image: alpine
tags: latest
containerfiles: ./docker/latest/Dockerfile
- name: Publish to NibTech Forge Registry
id: publish-image
uses: https://forge.niblock.tech/actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: forge.niblock.tech/containers
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}