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
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 3s
This commit is contained in:
parent
72e3e91d68
commit
304053f14b
1 changed files with 17 additions and 13 deletions
|
|
@ -22,17 +22,21 @@ jobs:
|
||||||
TAG="main-${TIMESTAMP}-${SHORT_SHA}"
|
TAG="main-${TIMESTAMP}-${SHORT_SHA}"
|
||||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and Push via Kaniko
|
- name: Build and Push with Kaniko
|
||||||
uses: https://git.mcintire.me/graham/infra/.forgejo/actions/kaniko-build@main
|
run: |
|
||||||
with:
|
KANIKO_VERSION="v1.23.2"
|
||||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
curl -fsSL "https://github.com/GoogleContainerTools/kaniko/releases/download/${KANIKO_VERSION}/executor-linux-amd64" \
|
||||||
image: git.mcintire.me/graham/aprs.me
|
-o /usr/local/bin/executor
|
||||||
tag: ${{ steps.tag.outputs.tag }}
|
chmod +x /usr/local/bin/executor
|
||||||
|
|
||||||
- name: Tag as latest
|
mkdir -p /kaniko/.docker
|
||||||
uses: https://git.mcintire.me/graham/infra/.forgejo/actions/kaniko-build@main
|
cat > /kaniko/.docker/config.json <<EOF
|
||||||
with:
|
{"auths":{"git.mcintire.me":{"username":"graham","password":"${{ secrets.FORGEJO_TOKEN }}"}}}
|
||||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
EOF
|
||||||
image: git.mcintire.me/graham/aprs.me
|
|
||||||
tag: latest
|
/usr/local/bin/executor \
|
||||||
extra_args: ""
|
--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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue