Skip to content

Commit

Permalink
Update .drone.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cloverzrg authored Jul 9, 2024
1 parent 7b544af commit 86abe8f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ steps:
|| true
)
- docker login --username=cloverzrg -p $password
- docker buildx create --use
- build_node=$(docker buildx create --use)
- echo 'build node:'$build_node
- docker buildx build --platform linux/arm64,linux/amd64,linux/386 -t cloverzrg/frps-docker:$DRONE_TAG -t cloverzrg/frps-docker:latest --push --build-arg DRONE_TAG=$DRONE_TAG .
- docker buildx build -f Dockerfile.frpc --platform linux/arm64,linux/amd64,linux/386 -t cloverzrg/frpc-docker:$DRONE_TAG -t cloverzrg/frpc-docker:latest --push --build-arg DRONE_TAG=$DRONE_TAG .
- docker buildx rm $build_node

- name: build-docker-master
image: docker:dind
when:
event:
- master
environment:
password:
from_secret: registry-password
Expand All @@ -82,10 +87,10 @@ steps:
&& chmod +x $FILE \
|| true
)
- DRONE_TAG=0.59.0
- DRONE_TAG=master
- docker login --username=cloverzrg -p $password
- build_node=$(docker buildx create --use)
- echo 'build node:'$build_node
- docker buildx build --platform linux/arm64,linux/amd64,linux/386 -t cloverzrg/frps-docker:$DRONE_TAG -t cloverzrg/frps-docker:latest --push --build-arg DRONE_TAG=$DRONE_TAG .
- docker buildx build -f Dockerfile.frpc --platform linux/arm64,linux/amd64,linux/386 -t cloverzrg/frpc-docker:$DRONE_TAG -t cloverzrg/frpc-docker:latest --push --build-arg DRONE_TAG=$DRONE_TAG .
- docker buildx build --platform linux/arm64,linux/amd64,linux/386 -t cloverzrg/frps-docker:latest --push --build-arg DRONE_TAG=$DRONE_TAG .
- docker buildx build -f Dockerfile.frpc --platform linux/arm64,linux/amd64,linux/386 -t cloverzrg/frpc-docker:latest --push --build-arg DRONE_TAG=$DRONE_TAG .
- docker buildx rm $build_node

0 comments on commit 86abe8f

Please sign in to comment.