Skip to content

Docker Image creation and Deployment Tag Update #12

Docker Image creation and Deployment Tag Update

Docker Image creation and Deployment Tag Update #12

name: Docker Image CI
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create docker tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Commit report
run: |
python3 k8s-crud-microservice/deploy/helm-charts/image-tag.py -i ${{ steps.vars.outputs.sha_short }}
git config --global user.name 'vishnuswmech'
git config --global user.email '[email protected]'
git commit -am "Image tag updation"
git push