diff --git a/.gitea/workflows/builder.yaml b/.gitea/workflows/builder.yaml index cd996c5..cdefcb2 100644 --- a/.gitea/workflows/builder.yaml +++ b/.gitea/workflows/builder.yaml @@ -13,22 +13,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Start shell build - run: CONTAINER_TOKEN=${{ secrets.CONTAINER_TOKEN }} ./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 - name: Login to register uses: https://gitea.com/docker/login-action@v2 with: registry: https://git.halis.io username: ${{ github.actor }} password: ${{ secrets.CONTAINER_TOKEN }} - - name: Build and push - uses: https://github.com/docker/build-push-action@v4 - with: - push: true - file: images/debian/Dockerfile.12.1-node18 - tags: git.halis.io/athens-school/runner-images:debian12.1-node18 - - + - name: Start shell build + run: ./build.sh diff --git a/build.sh b/build.sh index ee30abf..58686c2 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,9 @@ #!/bin/sh -echo $CONTAINER_TOKEN | docker login git.halis.io -u $GITHUB_ACTOR --password-stdin IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-) for d in ./images/* do - echo "Loading $d" for i in $d/* do echo "Building $i"