Compare commits
1 commit
developmen
...
kaniko
Author | SHA1 | Date | |
---|---|---|---|
e86b0ce6f1 |
1 changed files with 28 additions and 19 deletions
45
.github/workflows/.github-ci.yaml
vendored
45
.github/workflows/.github-ci.yaml
vendored
|
@ -3,26 +3,35 @@ name: ci
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Checkout
|
||||||
name: Login to Docker Hub
|
uses: actions/checkout@v4
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
with:
|
||||||
registry: gitea.client.c-one-infra.de
|
submodules: recursive
|
||||||
username: ${{ github.repository }}
|
|
||||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
- name: Repository meta
|
||||||
-
|
id: repository
|
||||||
name: Set up QEMU
|
run: |
|
||||||
uses: docker/setup-qemu-action@v3
|
registry=${{ github.server_url }}
|
||||||
-
|
registry=${registry##http*://}
|
||||||
name: Set up Docker Buildx
|
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
||||||
uses: docker/setup-buildx-action@v3
|
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||||
-
|
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
||||||
name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
- name: Docker meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
id: docker
|
||||||
with:
|
with:
|
||||||
|
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: https://codeberg.org/umglurf/kaniko-action@main
|
||||||
|
with:
|
||||||
|
credentials: |
|
||||||
|
${{ steps.repository.outputs.registry }}=${{ github.repository }}:${{ secrets.PACKAGES_TOKEN }}
|
||||||
|
destinations: |
|
||||||
|
${{ steps.docker.outputs.tags }}
|
||||||
push: true
|
push: true
|
||||||
tags: gitea.client.c-one-infra.de/giteaadmin/app:latest
|
|
Loading…
Reference in a new issue