api-client/.forgejo/workflows/docker-image.yml
thibaud-leclere b332b26752
Some checks failed
Publish Docker image / publish (push) Failing after 11s
ci: publish docker image on tags
2026-05-06 11:51:00 +02:00

41 lines
1.1 KiB
YAML

name: Publish Docker image
on:
push:
tags:
- "*"
env:
REGISTRY: forge.lclr.dev
IMAGE_NAME: thibaud-lclr/api-client
jobs:
publish:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Forgejo registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.FORGEJO_REGISTRY_USERNAME }}
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: prod.Dockerfile
target: aio
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
labels: |
org.opencontainers.image.source=https://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ github.ref_name }}