Skip to content

Commit

Permalink
add image delivery to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilsty committed Jun 9, 2020
1 parent 8c31853 commit a5cf4ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
15 changes: 2 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
# .drone.yml - Sample file for connecting your module to Walhall's CI/CD pipeline.
# Save this in the repository root. You don't have to change anything.
# All environment variables are created in Walhall as secrets.

pipeline:
# Walhall requires git tags to exactly match the image tags.
# This step preserves the tags.
preserve-git-tags:
image: bash
commands:
# If the commit reference is a tag, then Drone will write the tag to the .tags file
- bash -c "[[ \"${DRONE_COMMIT_REF}\" == \"refs/tags/\"* ]] && echo \"${DRONE_COMMIT_REF#refs/tags/}\" > .tags"
when:
event: [tag]

# This step builds the image and pushes it to the registry when a tag is pushed.
# Drone is configured to use the Walhall registry by default.
build-docker-image-tag:
image: plugins/docker
registry:
from_secret: DOCKER_REGISTRY
repo:
from_secret: DOCKER_REPO
registry: registry.humanitec.io
repo: registry.humanitec.io/public/sample-service
username:
from_secret: DOCKER_USERNAME
password:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/walhall-ci.yml

This file was deleted.

0 comments on commit a5cf4ab

Please sign in to comment.