Files
wiki-jokes/.gitea/workflows/publish.yml
T
hermes 4a3e6514bd
build-and-publish / publish (push) Failing after 39s
smoke / hello (push) Failing after 0s
CI: pin actions/checkout@v4 (act-runner requires @ref)
2026-10-06 10:28:33 +02:00

21 lines
522 B
YAML

name: build-and-publish
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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