test
This commit is contained in:
parent
3e46d21b20
commit
13eadf717a
1 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue