Update .github/workflows/.github-ci.yaml #1
1 changed files with 19 additions and 28 deletions
47
.github/workflows/.github-ci.yaml
vendored
47
.github/workflows/.github-ci.yaml
vendored
|
@ -3,35 +3,26 @@ name: ci
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
build:
|
||||||
runs-on: docker
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
uses: actions/checkout@v4
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
registry: gitea.client.c-one-infra.de
|
||||||
|
username: ${{ github.repository }}
|
||||||
- name: Repository meta
|
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
id: repository
|
-
|
||||||
run: |
|
name: Set up QEMU
|
||||||
registry=${{ github.server_url }}
|
uses: docker/setup-qemu-action@v3
|
||||||
registry=${registry##http*://}
|
-
|
||||||
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
name: Set up Docker Buildx
|
||||||
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
uses: docker/setup-buildx-action@v3
|
||||||
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
-
|
||||||
|
name: Build and push
|
||||||
- name: Docker meta
|
uses: docker/build-push-action@v6
|
||||||
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