test
This commit is contained in:
parent
03ecc27d8f
commit
39f8bf2cdd
1 changed files with 5 additions and 6 deletions
|
|
@ -14,9 +14,6 @@ on:
|
|||
required: false
|
||||
type: string
|
||||
default: "./Dockerfile"
|
||||
secrets:
|
||||
REGISTRY_AUTH:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -33,16 +30,18 @@ jobs:
|
|||
- name: Configure registry auth
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
REGISTRY_AUTH: ${{ secrets.REGISTRY_AUTH }}
|
||||
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
ACTOR: ${{ github.actor }}
|
||||
run: |
|
||||
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
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: git.vodyanoysh.ru/dockerpush/${{ inputs.image_name }}
|
||||
images: git.vodyanoysh.ru/${{ inputs.image_name }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
|
|
|
|||
Loading…
Reference in a new issue