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}"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue