wip
Some checks failed
Build and Push to Forgejo Registry / checkout (push) Failing after 10s

This commit is contained in:
piecka 2025-04-11 12:05:40 +02:00
parent aff9a0007d
commit 02cbb89c73

View file

@ -26,7 +26,7 @@ jobs:
# steps:
- name: Login to Forgejo Container Registry
env:
DOCKER_HOST: tcp://docker:2375
DOCKER_HOST: /var/lib/docker.sock
run: |
echo "${{ secrets.FORGEJO_PASSWORD }}" | docker login git.k4li.de \
-u "${{ vars.FORGEJO_USERNAME }}" \
@ -35,62 +35,3 @@ jobs:
run: |
docker build -t git.k4li.de/docker/caddy:latest .
docker push git.k4li.de/docker/caddy:latest
# - name: Running buildscript
# env:
# DOCKER_HOST: tcp://docker:2375
# run: |
# ./build.sh || echo "Error building docker image via script!"
# -
# name: Checkout
# uses: actions/checkout@v4
# -
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
# name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
#
# -
# name: Build and push
# uses: docker/build-push-action@v6
# with:
# push: true
# tags: docker/caddy:latest
# name: ci
# on:
# push:
#
# jobs:
# build:
# runs-on: docker
# # container: catthehacker/ubuntu:act-latest ##THIS IS COMMENTED BECAUSE THIS IS DEFINED IN THE FORGEJO-RUNNER CMD GLOBALLY. BUT UNCOMMENTING DOESNT CHANGE ANYTHING.
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# with:
# platforms: 'amd64,arm64' ## CAN REMOVE with.platforms AND BUILD FOR ALL BUT DOESNT MATTER
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# registry: git.k4li.de
# username: ${{ secrets.FORGEJO_USERNAME }}
# password: ${{ secrets.FORGEJO_PASSWORD }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# #testing
# context: .
# file: ./Dockerfile
# platforms: linux/amd64,linux/arm64
# push: true
# tags: docker/caddy:latest