This commit is contained in:
vodyanoysh 2026-04-22 22:31:37 +07:00
parent 03ecc27d8f
commit 39f8bf2cdd

View file

@ -14,9 +14,6 @@ on:
required: false required: false
type: string type: string
default: "./Dockerfile" default: "./Dockerfile"
secrets:
REGISTRY_AUTH:
required: true
jobs: jobs:
build: build:
@ -33,16 +30,18 @@ jobs:
- name: Configure registry auth - name: Configure registry auth
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
env: env:
REGISTRY_AUTH: ${{ secrets.REGISTRY_AUTH }} TOKEN: ${{ secrets.GITEA_TOKEN }}
ACTOR: ${{ github.actor }}
run: | run: |
mkdir -p ~/.docker mkdir -p ~/.docker
printf '{"auths":{"git.vodyanoysh.ru":{"auth":"%s"}}}' "$REGISTRY_AUTH" > ~/.docker/config.json AUTH=$(printf '%s:%s' "$ACTOR" "$TOKEN" | base64 -w0)
printf '{"auths":{"git.vodyanoysh.ru":{"auth":"%s"}}}' "$AUTH" > ~/.docker/config.json
- name: Extract metadata - name: Extract metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: git.vodyanoysh.ru/dockerpush/${{ inputs.image_name }} images: git.vodyanoysh.ru/${{ inputs.image_name }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr