Use push hook for actual pushing

This commit is contained in:
Jim Martens 2023-08-03 19:00:08 +02:00
parent 9ab9eb0237
commit 676c042a73
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
docker buildx create --name multiarch --use docker buildx create --name multiarch --use
docker buildx build --push --platform linux/amd64,linux/arm64 . -t 2martens/qodana-jvm-community-drone-plugin:2023.2 -t 2martens/qodana-jvm-community-drone-plugin:latest docker buildx build --platform linux/amd64 . -t 2martens/qodana-jvm-community-drone-plugin:2023.2-amd64
docker buildx build --platform linux/arm64 . -t 2martens/qodana-jvm-community-drone-plugin:2023.2-arm64

View File

@ -1 +1,7 @@
#!/bin/bash #!/bin/bash
docker push 2martens/qodana-jvm-community-drone-plugin:2023.2-amd64
docker push 2martens/qodana-jvm-community-drone-plugin:2023.2-arm64
docker manifest create 2martens/qodana-jvm-community-drone-plugin:2023.2 2martens/qodana-jvm-community-drone-plugin:2023.2-amd64 2martens/qodana-jvm-community-drone-plugin:2023.2-arm64
docker tag 2martens/qodana-jvm-community-drone-plugin:2023.2 2martens/qodana-jvm-community-drone-plugin:latest
docker push 2martens/qodana-jvm-community-drone-plugin:2023.2
docker push 2martens/qodana-jvm-community-drone-plugin:latest