diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index c386918..595615d 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -14,8 +14,11 @@ jobs: image: docker:latest steps: - - name: Install git - run: apk add --no-cache git + - name: Install tools + run: | + apk add --no-cache git curl + # Install crane for pushing to insecure registries + curl -sL https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_Linux_x86_64.tar.gz | tar -xz -C /usr/local/bin crane - name: Checkout code run: | @@ -31,24 +34,16 @@ jobs: fi echo "tag=${TAG}" >> "$GITHUB_OUTPUT" - - name: Setup registry auth - run: | - REGISTRY_HOST=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||') - AUTH=$(echo -n "${{ gitea.actor }}:${{ secrets.REGISTRY_TOKEN }}" | base64) - mkdir -p ~/.docker - cat > ~/.docker/config.json <