Files
wiki-jokes/.gitea/workflows/publish.yml
T
hermes a1640322ff
build-and-publish / publish (push) Failing after 2s
smoke / hello (push) Failing after 0s
CI: build and publish image to Gitea container registry
2026-10-06 10:26:24 +02:00

21 lines
519 B
YAML

name: build-and-publish
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- name: Build and push image
run: |
set -e
IMAGE=git.obahan.xyz/hermes/wiki-jokes
echo "$REGISTRY" | docker login git.obahan.xyz -u hermes --password-stdin
docker build -t $IMAGE:${{ github.sha }} -t $IMAGE:latest .
docker push $IMAGE:${{ github.sha }}
docker push $IMAGE:latest