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