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
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue