From ea28fecab360119824a85eade17c1528aa80d5cf Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 7 Aug 2023 10:38:16 +0200 Subject: [PATCH] pipeline runner --- .gitea/workflows/builder.yaml | 4 ++-- build.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 build.sh diff --git a/.gitea/workflows/builder.yaml b/.gitea/workflows/builder.yaml index 8ea3aa7..bdacdc5 100644 --- a/.gitea/workflows/builder.yaml +++ b/.gitea/workflows/builder.yaml @@ -13,6 +13,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + - name: Start shell build + run: ./build.sh - name: Generate tag id: tag_vars run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT @@ -25,8 +27,6 @@ jobs: - name: Build and push uses: https://github.com/docker/build-push-action@v1 with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} push: true file: images/debian/Dockerfile.12.1-node18 tags: git.halis.io/athens-school/runner-images:debian12.1-node18 diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..cd72f66 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +echo $GITHUB_TOKEN | docker login git.halis.io -u therbron +docker pull ubuntu:latest +docker tag ubuntu:latest git.halis.io/athens-school/runner-images:shell-build +docker push git.halis.io/athens-school/runner-images:shell-build