35 lines
941 B
YAML
35 lines
941 B
YAML
name: Build LinkLog Development Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
IMAGE_NAME: git.kolkman.org/olaf/link-log
|
|
|
|
jobs:
|
|
development-image:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out main
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.kolkman.org
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Build and publish development image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ env.IMAGE_NAME }}:development
|
|
labels: |
|
|
org.opencontainers.image.source=https://git.kolkman.org/olaf/Link-Log
|
|
org.opencontainers.image.revision=${{ gitea.sha }}
|
|
org.opencontainers.image.version=development |