Skip to content

Commit

Permalink
auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
amineabri committed Sep 24, 2024
1 parent 66d1739 commit 4a59c80
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ steps:
- name: update-chart-version
image: alpine
commands:
- TAG=$(echo ${DRONE_TAG#v})
- sh -c 'sed -i "s/^version:.*/version: ${TAG}/" Chart.yaml'
- sh -c 'sed -i "s/^appVersion:.*/appVersion: ${TAG}/" Chart.yaml'
- sh -c 'sed -i "s/^version:.*/version: $${DRONE_TAG}/" Chart.yaml'
- sh -c 'sed -i "s/^appVersion:.*/appVersion: $${DRONE_TAG}/" Chart.yaml'
when:
event:
- tag
Expand All @@ -27,8 +26,7 @@ steps:
- name: update-index
image: alpine/helm:3.16
commands:
- TAG=$(echo ${DRONE_TAG#v})
- helm repo index . --url https://github.com/UKHomeOffice/inquiry-charts/releases/download/$TAG/
- helm repo index . --url https://github.com/UKHomeOffice/inquiry-charts/releases/download/$${DRONE_TAG}/
when:
event:
- tag
Expand Down

0 comments on commit 4a59c80

Please sign in to comment.