fix: make CI standalone - use kaniko binary directly, no external action dependency
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 3s

This commit is contained in:
Graham McIntire 2026-07-26 18:57:10 -05:00
parent 72e3e91d68
commit 304053f14b
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -22,17 +22,21 @@ jobs:
TAG="main-${TIMESTAMP}-${SHORT_SHA}"
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Build and Push via Kaniko
uses: https://git.mcintire.me/graham/infra/.forgejo/actions/kaniko-build@main
with:
token: ${{ secrets.FORGEJO_TOKEN }}
image: git.mcintire.me/graham/aprs.me
tag: ${{ steps.tag.outputs.tag }}
- name: Build and Push with Kaniko
run: |
KANIKO_VERSION="v1.23.2"
curl -fsSL "https://github.com/GoogleContainerTools/kaniko/releases/download/${KANIKO_VERSION}/executor-linux-amd64" \
-o /usr/local/bin/executor
chmod +x /usr/local/bin/executor
- name: Tag as latest
uses: https://git.mcintire.me/graham/infra/.forgejo/actions/kaniko-build@main
with:
token: ${{ secrets.FORGEJO_TOKEN }}
image: git.mcintire.me/graham/aprs.me
tag: latest
extra_args: ""
mkdir -p /kaniko/.docker
cat > /kaniko/.docker/config.json <<EOF
{"auths":{"git.mcintire.me":{"username":"graham","password":"${{ secrets.FORGEJO_TOKEN }}"}}}
EOF
/usr/local/bin/executor \
--context=dir://. \
--dockerfile=Dockerfile \
--destination="git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}" \
--destination="git.mcintire.me/graham/aprs.me:latest" \
--cache=true