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