Add .forgejo/workflows/latest-release.yml
This commit is contained in:
parent
92c09d96ba
commit
e71aef0f68
1 changed files with 45 additions and 0 deletions
45
.forgejo/workflows/latest-release.yml
Normal file
45
.forgejo/workflows/latest-release.yml
Normal file
|
@ -0,0 +1,45 @@
|
|||
name: Release (Alpine Latest)
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "@weekly"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
REGISTRY: code.douglasparker.dev
|
||||
REGISTRY_USERNAME: ${{ github.actor }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
|
||||
REGISTRY_IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: debian-latest
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to the GitHub Container Registry
|
||||
uses: actions/docker-login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ env.REGISTRY_USERNAME }}
|
||||
password: ${{ env.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Extract repository metadata (tags, labels)
|
||||
id: meta
|
||||
uses: actions/docker-metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}
|
||||
tags: |
|
||||
latest
|
||||
|
||||
- name: Build the Docker image and publish to the Docker Registry
|
||||
uses: actions/docker-build-push-action@v5
|
||||
with:
|
||||
context: .docker/latest
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
Reference in a new issue