Skip to content

Commit

Permalink
Merge pull request #59 from superseb/fix_versioning
Browse files Browse the repository at this point in the history
Push existing image instead of building again
  • Loading branch information
superseb authored Sep 19, 2023
2 parents 41ffa0f + 3488ed0 commit 2fa6b20
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 12 additions & 10 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,19 @@ steps:
- tag

- name: docker-publish
image: plugins/docker
settings:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/rancher-cleanup"
tags:
- "${DRONE_TAG}-amd64"
- "latest-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
- docker push docker.io/rancher/rancher-cleanup:latest-amd64
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
when:
instance:
- drone-publish.rancher.io
Expand Down
6 changes: 3 additions & 3 deletions scripts/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ source $(dirname $0)/version

cd $(dirname $0)/..

mkdir -p dist/artifacts
cp ./cleanup.sh ./verify.sh dist/artifacts/

sed -i -e 's/unreleased/'"$VERSION"'/' cleanup.sh
sed -i -e 's/unreleased/'"$VERSION"'/' verify.sh

mkdir -p dist/artifacts
cp ./cleanup.sh ./verify.sh dist/artifacts/

IMAGE=${REPO}/rancher-cleanup:${TAG}
DOCKERFILE=package/Dockerfile
if [ -e ${DOCKERFILE}.${ARCH} ]; then
Expand Down

0 comments on commit 2fa6b20

Please sign in to comment.