Skip to content

Commit

Permalink
Merge pull request #61 from superseb/fix_release
Browse files Browse the repository at this point in the history
Re-use container image instead of re-creating
  • Loading branch information
superseb authored Sep 19, 2023
2 parents 2fa6b20 + 8a3624c commit 05d2cbc
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ steps:
- tag

- name: docker-publish-prerelease
image: plugins/docker
settings:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/rancher-cleanup"
tag: "${DRONE_TAG}-amd64"
username:
image: rancher/dapper:v0.6.0
volumes:
- name: docker
path: /var/run/docker.sock
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push docker.io/rancher/rancher-cleanup:$DRONE_TAG-amd64
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
when:
instance:
- drone-publish.rancher.io
Expand All @@ -109,6 +112,7 @@ steps:
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push docker.io/rancher/rancher-cleanup:$DRONE_TAG-amd64
- docker tag docker.io/rancher/rancher-cleanup:$DRONE_TAG-amd64 docker.io/rancher/rancher-cleanup:latest-amd64
- docker push docker.io/rancher/rancher-cleanup:latest-amd64
environment:
DOCKER_USERNAME:
Expand Down

0 comments on commit 05d2cbc

Please sign in to comment.