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
|
type: string
|
||||||
default: "./Dockerfile"
|
default: "./Dockerfile"
|
||||||
secrets:
|
secrets:
|
||||||
REGISTRY_TOKEN:
|
REGISTRY_AUTH:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -30,6 +30,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
driver: docker
|
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
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
|
@ -41,14 +49,6 @@ jobs:
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=sha,prefix=sha-
|
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
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue