fix: use docker build/push directly instead of kaniko
All checks were successful
Build and Push / Build and Push Docker Image (push) Successful in 2m18s
All checks were successful
Build and Push / Build and Push Docker Image (push) Successful in 2m18s
This commit is contained in:
parent
a7918f95f0
commit
ea28acbc51
1 changed files with 9 additions and 14 deletions
|
|
@ -26,19 +26,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y docker.io
|
apt-get update && apt-get install -y docker.io
|
||||||
|
|
||||||
- name: Build and Push with Kaniko
|
- name: Build and Push
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /kaniko/.docker
|
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login git.mcintire.me -u graham --password-stdin
|
||||||
cat > /kaniko/.docker/config.json <<EOF
|
|
||||||
{"auths":{"git.mcintire.me":{"username":"graham","password":"${{ secrets.FORGEJO_TOKEN }}"}}}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
docker run --rm \
|
docker build \
|
||||||
-v "$(pwd)":/workspace \
|
-t "git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}" \
|
||||||
-v /kaniko/.docker:/kaniko/.docker \
|
-t "git.mcintire.me/graham/aprs.me:latest" \
|
||||||
-w /workspace \
|
.
|
||||||
gcr.io/kaniko-project/executor:latest \
|
|
||||||
--context=/workspace \
|
docker push "git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}"
|
||||||
--destination="git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}" \
|
docker push "git.mcintire.me/graham/aprs.me:latest"
|
||||||
--destination="git.mcintire.me/graham/aprs.me:latest" \
|
|
||||||
--cache=true
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue