This commit is contained in:
vodyanoysh 2026-04-22 22:39:35 +07:00
parent 3e46d21b20
commit 13eadf717a

View file

@ -14,13 +14,13 @@ on:
required: false
type: string
default: "./Dockerfile"
secrets:
REGISTRY_AUTH:
required: true
jobs:
build:
runs-on: docker
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
@ -33,12 +33,10 @@ jobs:
- name: Configure registry auth
if: github.event_name != 'pull_request'
env:
TOKEN: ${{ secrets.GITEA_TOKEN }}
ACTOR: ${{ github.actor }}
REGISTRY_AUTH: ${{ secrets.REGISTRY_AUTH }}
run: |
mkdir -p ~/.docker
AUTH=$(printf '%s:%s' "$ACTOR" "$TOKEN" | base64 -w0)
printf '{"auths":{"git.vodyanoysh.ru":{"auth":"%s"}}}' "$AUTH" > ~/.docker/config.json
printf '{"auths":{"git.vodyanoysh.ru":{"auth":"%s"}}}' "$REGISTRY_AUTH" > ~/.docker/config.json
- name: Extract metadata
id: meta