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 }}