5a5e45b685
Docker Build / docker (push) Failing after 8s
Per Gitea Actions docs, the auto-injected token is exposed as GITEA_TOKEN, not GITHUB_TOKEN. The latter is GitHub-Actions-specific and not aliased on Gitea by default. Also bumps version to 1.2.2 to trigger a fresh tag-build.
38 lines
848 B
YAML
38 lines
848 B
YAML
name: Docker Build
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.shcizo.se
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.GITEA_TOKEN }}
|
|
|
|
- uses: docker/metadata-action@v5
|
|
id: meta
|
|
with:
|
|
images: gitea.shcizo.se/shcizo/pdga-rating
|
|
tags: |
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=raw,value=latest
|
|
|
|
- uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|