From 530a894961397020833e09de82c59cb24d92dc5a Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 1 Jan 2024 20:55:08 +0000 Subject: [PATCH] Fix indenting --- .forgejo/workflows/build.yml | 132 +++++++++++++++++------------------ 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index d1a3e99..54c8e02 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -2,71 +2,71 @@ name: 'Build Custom docker:dind image' author: 'Neshura' on: - push: - schedule: - - cron: '0 0 * * 1' + push: + schedule: + - cron: '0 0 * * 1' jobs: - build-container: - runs-on: dind - steps: - - - name: Install Node.js - run: apk add nodejs npm - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - config-inline: | - [registry."docker.io"] - mirrors = ["https://docker-cache.neshweb.net"] - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - registry: forgejo.neshweb.net - username: ${{ secrets.FORGEJO_USERNAME }} - password: ${{ secrets.FORGEJO_TOKEN }} - - - name: Push to Package Registry - uses: docker/build-push-action@v5 - with: - push: true - tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest + build-container: + runs-on: dind + steps: + - + name: Install Node.js + run: apk add nodejs npm + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."docker.io"] + mirrors = ["https://docker-cache.neshweb.net"] + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: forgejo.neshweb.net + username: ${{ secrets.FORGEJO_USERNAME }} + password: ${{ secrets.FORGEJO_TOKEN }} + - + name: Push to Package Registry + uses: docker/build-push-action@v5 + with: + push: true + tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest - build-container-fallback: - needs: [build-container] - if: needs.build-container.result == 'failure' - runs-on: docker - steps: - - - name: Prepare Container Environment - run: | - install -m 0755 -d /etc/apt/keyrings; \ - curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg; \ - chmod a+r /etc/apt/keyrings/docker.gpg; \ - echo \ - "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ - "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ - tee /etc/apt/sources.list.d/docker.list > /dev/null; \ - apt-get update; \ - apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - config-inline: | - [registry."docker.io"] - mirrors = ["https://docker-cache.neshweb.net"] - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - registry: forgejo.neshweb.net - username: ${{ secrets.FORGEJO_USERNAME }} - password: ${{ secrets.FORGEJO_TOKEN }} - - - name: Push to Package Registry - uses: docker/build-push-action@v5 - with: - push: true - tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest \ No newline at end of file + build-container-fallback: + needs: [build-container] + if: needs.build-container.result == 'failure' + runs-on: docker + steps: + - + name: Prepare Container Environment + run: | + install -m 0755 -d /etc/apt/keyrings; \ + curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg; \ + chmod a+r /etc/apt/keyrings/docker.gpg; \ + echo \ + "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ + "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null; \ + apt-get update; \ + apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."docker.io"] + mirrors = ["https://docker-cache.neshweb.net"] + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: forgejo.neshweb.net + username: ${{ secrets.FORGEJO_USERNAME }} + password: ${{ secrets.FORGEJO_TOKEN }} + - + name: Push to Package Registry + uses: docker/build-push-action@v5 + with: + push: true + tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest \ No newline at end of file