Files
HarmitCraft-2025/.gitea/workflows/ci.yaml
Marijn Doeve bb90422b4a
Some checks failed
release-tag / release-image (push) Failing after 1m59s
Container
2025-11-07 09:35:36 +01:00

45 lines
1.2 KiB
YAML

name: release-tag
on:
push:
branches: [main]
jobs:
release-image:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: gitea.marijndoeve.nl
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.marijndoeve.nl/${{github.repository_owner}}/dynmap-web
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v6
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
with:
context: containers/web
file: containers/web/Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}