Skip to content

Commit

Permalink
tag
Browse files Browse the repository at this point in the history
  • Loading branch information
shyam-ks committed Nov 18, 2021
1 parent 54917e7 commit b5c2aeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/sample-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
image_tag:
description: Image tag
default: tag


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand All @@ -38,7 +42,7 @@ jobs:
ref: 'gh-pages'
path: 'package'
- name: Package
run: cd master && sh package.sh ${{ github.workflow }} ${{ env.CHART_VERSION }} "${{ github.workflow }}-${{ env.CHART_VERSION }} pushed"
run: cd master && sh package.sh ${{ github.workflow }} ${{ env.CHART_VERSION }} "${{ github.workflow }}-${{ env.CHART_VERSION }} pushed" ${{ github.event.inputs.image_tag}}
qa:
needs: dev
runs-on: ubuntu-latest
Expand All @@ -57,7 +61,7 @@ jobs:
ref: 'gh-pages'
path: 'package'
- name: Package
run: cd master && sh package.sh ${{ github.workflow }} ${{ env.CHART_VERSION }} "${{ github.workflow }}-${{ env.CHART_VERSION }} pushed"
run: cd master && sh package.sh ${{ github.workflow }} ${{ env.CHART_VERSION }} "${{ github.workflow }}-${{ env.CHART_VERSION }} pushed" ${{ github.event.inputs.image_tag}}
uat:
needs: qa
runs-on: ubuntu-latest
Expand Down Expand Up @@ -87,7 +91,7 @@ jobs:
ref: 'gh-pages'
path: 'package'
- name: Package
run: cd master && sh package.sh ${{ github.workflow }} ${{ env.CHART_VERSION }} "${{ github.workflow }}-${{ env.CHART_VERSION }} pushed"
run: cd master && sh package.sh ${{ github.workflow }} ${{ env.CHART_VERSION }} "${{ github.workflow }}-${{ env.CHART_VERSION }} pushed" ${{ github.event.inputs.image_tag}}



2 changes: 2 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ set -x
echo "Name: $1"
echo "Version: $2"
echo "Comment: $3"
echo "Tag: $3"

if [ ! -f ../package/$1-$2.tgz ]; then

ls
pip install ruamel.yaml
python3 ./utils/update-chart-version.py ./chart/$1/Chart.yaml 'version' $2
python3 ./utils/update-image-tag-helm.py ./charts/$1/values.yaml

mkdir -p package
cd package
Expand Down

0 comments on commit b5c2aeb

Please sign in to comment.