Skip to content

Commit

Permalink
Do tags for manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Feb 26, 2022
1 parent 045d8e3 commit e26ad4c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .drone.dcs.yml
Expand Up @@ -1312,11 +1312,23 @@ platform:
arch: amd64

steps:
- name: send-tags-to-tags-file
image: node
when:
event:
- tag
commands:
- PATCH_VERSION=`echo $${DRONE_TAG##v}`
- PATCH_VERSION=`echo $${PATCH_VERSION%%-dcs}`
- MINOR_VERSION=`echo $${PATCH_VERSION} | cut -f1,2 -d'.'`
- MAJOR_VERSION=`echo $${MINOR_VERSION} | cut -f1 -d'.'`
- echo -n $DRONE_TAG", "$PATCH_VERSION", "$MINOR_VERSION", "$MAJOR_VERSION"" > .tags

# - name: manifest-rootless
# image: plugins/manifest
# pull: always
# settings:
# auto_tag: true
# auto_tag: false
# ignore_missing: true
# spec: docker/manifest.rootless.dcs.tmpl
# password:
Expand All @@ -1327,7 +1339,7 @@ steps:
- name: manifest
image: plugins/manifest
settings:
auto_tag: true
auto_tag: false
ignore_missing: true
spec: docker/manifest.dcs.tmpl
password:
Expand Down

0 comments on commit e26ad4c

Please sign in to comment.