test
This commit is contained in:
parent
82d01c28be
commit
03ecc27d8f
1 changed files with 9 additions and 9 deletions
|
|
@ -15,7 +15,7 @@ on:
|
|||
type: string
|
||||
default: "./Dockerfile"
|
||||
secrets:
|
||||
REGISTRY_TOKEN:
|
||||
REGISTRY_AUTH:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
|
|
@ -30,6 +30,14 @@ jobs:
|
|||
with:
|
||||
driver: docker
|
||||
|
||||
- name: Configure registry auth
|
||||
if: github.event_name != 'pull_request'
|
||||
env:
|
||||
REGISTRY_AUTH: ${{ secrets.REGISTRY_AUTH }}
|
||||
run: |
|
||||
mkdir -p ~/.docker
|
||||
printf '{"auths":{"git.vodyanoysh.ru":{"auth":"%s"}}}' "$REGISTRY_AUTH" > ~/.docker/config.json
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
|
|
@ -41,14 +49,6 @@ jobs:
|
|||
type=semver,pattern={{version}}
|
||||
type=sha,prefix=sha-
|
||||
|
||||
- name: Login to Forgejo Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.vodyanoysh.ru
|
||||
username: dockerpush
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue