From 931bd83231054a3d05b834c83daa56b79bb89fe3 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Tue, 9 Jan 2024 23:36:51 +0100 Subject: [PATCH] test --- .forgejo/workflows/docker-image.yaml | 61 +++++++++++++++------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/.forgejo/workflows/docker-image.yaml b/.forgejo/workflows/docker-image.yaml index 6ee5b82..570a4e7 100644 --- a/.forgejo/workflows/docker-image.yaml +++ b/.forgejo/workflows/docker-image.yaml @@ -7,32 +7,37 @@ jobs: docker-image: runs-on: docker steps: - - name: Install dependencies +# - name: Install dependencies +# run: | +# echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list +# apt-get update -qq +# apt-get install -y git +# DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io +# +# - name: Checkout the sourcecode +# uses: actions/checkout@v3 +# +# - name: Set up Docker build environment (rootless) +# uses: docker/setup-buildx-action@v3 +# with: +# driver-opts: | +# image=moby/buildkit:v0.12.1-rootless +# network=host +# +# - name: Login to forgejo docker registry +# uses: docker/login-action@v3 +# with: +# registry: git.okoyono.de +# username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} +# password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} +# +# - name: Build and push the docker image +# uses: docker/build-push-action@v5 +# with: +# push: true +# tags: git.okoyono.de/okoyono-intern/okospaceapi:latest +# + - name: Deploy via webhook run: | - echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list - apt-get update -qq - apt-get install -y git - DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io - - - name: Checkout the sourcecode - uses: actions/checkout@v3 - - - name: Set up Docker build environment (rootless) - uses: docker/setup-buildx-action@v3 - with: - driver-opts: | - image=moby/buildkit:v0.12.1-rootless - network=host - - - name: Login to forgejo docker registry - uses: docker/login-action@v3 - with: - registry: git.okoyono.de - username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} - password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} - - - name: Build and push the docker image - uses: docker/build-push-action@v5 - with: - push: true - tags: git.okoyono.de/okoyono-intern/okospaceapi:latest \ No newline at end of file + apt-get install -y curl + curl -X GET http://host.docker.internal:8100?token=${{ secrets.DEPLOY_TOKEN }}&script=deploy-spaceapi.sh