This commit is contained in:
parent
17c2092b42
commit
afe76ece74
1 changed files with 17 additions and 2 deletions
19
.github/workflows/.github-ci.yaml
vendored
19
.github/workflows/.github-ci.yaml
vendored
|
@ -7,6 +7,21 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Repository meta
|
||||||
|
id: repository
|
||||||
|
run: |
|
||||||
|
registry=${{ github.server_url }}
|
||||||
|
registry=${registry##http*://}
|
||||||
|
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
||||||
|
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||||
|
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
id: docker
|
||||||
|
with:
|
||||||
|
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Login to registry
|
name: Login to registry
|
||||||
run: |
|
run: |
|
||||||
|
@ -23,7 +38,7 @@ jobs:
|
||||||
name: Login to registry
|
name: Login to registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.factory.c-one-infra.de
|
registry: ${{ steps.repository.outputs.registry }}
|
||||||
username: ${{ github.repository }}
|
username: ${{ github.repository }}
|
||||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
-
|
-
|
||||||
|
@ -37,7 +52,7 @@ jobs:
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: gitea.factory.c-one-infra.de/giteaadmin/app:latest
|
tags: ${{ steps.docker.outputs.tags }}
|
||||||
|
|
||||||
#-
|
#-
|
||||||
# name: Login to registry
|
# name: Login to registry
|
||||||
|
|
Loading…
Reference in a new issue