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: |
|
||||
apt-get update && apt-get install -y docker.io
|
||||
|
||||
- name: Build and Push with Kaniko
|
||||
- name: Build and Push
|
||||
run: |
|
||||
mkdir -p /kaniko/.docker
|
||||
cat > /kaniko/.docker/config.json <<EOF
|
||||
{"auths":{"git.mcintire.me":{"username":"graham","password":"${{ secrets.FORGEJO_TOKEN }}"}}}
|
||||
EOF
|
||||
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login git.mcintire.me -u graham --password-stdin
|
||||
|
||||
docker run --rm \
|
||||
-v "$(pwd)":/workspace \
|
||||
-v /kaniko/.docker:/kaniko/.docker \
|
||||
-w /workspace \
|
||||
gcr.io/kaniko-project/executor:latest \
|
||||
--context=/workspace \
|
||||
--destination="git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}" \
|
||||
--destination="git.mcintire.me/graham/aprs.me:latest" \
|
||||
--cache=true
|
||||
docker build \
|
||||
-t "git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}" \
|
||||
-t "git.mcintire.me/graham/aprs.me:latest" \
|
||||
.
|
||||
|
||||
docker push "git.mcintire.me/graham/aprs.me:${{ steps.tag.outputs.tag }}"
|
||||
docker push "git.mcintire.me/graham/aprs.me:latest"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue