2024-02-27 20:09:45 +00:00
|
|
|
name: Release
|
2024-02-27 06:53:09 +00:00
|
|
|
|
|
|
|
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
|
2024-03-11 01:49:29 +00:00
|
|
|
runs-on: docker
|
2024-02-27 06:53:09 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout the repository
|
|
|
|
uses: actions/checkout@v4
|
2024-04-19 19:09:46 +00:00
|
|
|
|
|
|
|
- name: Build the container image using Buildah
|
|
|
|
id: build-image
|
|
|
|
uses: https://forge.niblock.tech/actions/buildah-build@v2
|
2024-02-27 06:53:09 +00:00
|
|
|
with:
|
2024-04-19 19:09:46 +00:00
|
|
|
image: alpine
|
|
|
|
tags: latest
|
|
|
|
containerfiles: ./docker/latest/Dockerfile
|
2024-02-27 06:53:09 +00:00
|
|
|
|
2024-04-19 19:09:46 +00:00
|
|
|
- name: Publish to NibTech Forge Registry
|
|
|
|
id: publish-image
|
|
|
|
uses: https://forge.niblock.tech/actions/push-to-registry@v2
|
2024-02-27 06:53:09 +00:00
|
|
|
with:
|
2024-04-19 19:09:46 +00:00
|
|
|
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 }}
|