This repository has been archived on 2025-12-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
garm-test-pipeline/.github/workflows/.github-ci.yaml
Patrick.Sy 365928c319
Some checks failed
ci / build (push) Failing after 7s
Update .github/workflows/.github-ci.yaml
2025-11-10 09:29:26 +00:00

48 lines
1.3 KiB
YAML

name: ci
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Repository meta
id: repository
run: |
registry=${{ github.server_url }}
registry=${registry##http*://}
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
echo "registry=${registry}"
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
echo "repository=${repository}"
-
name: Docker meta
uses: docker/metadata-action@v5
id: docker
with:
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
-
name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ steps.repository.outputs.registry }}
username: "${{ secrets.PACKAGES_USER }}"
password: "${{ secrets.PACKAGES_TOKEN }}"
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.docker.outputs.tags }}
-
name: docker run
run: |
docker run garm-provider-test.t09.de/giteaadmin/demo3:development