Skip to content

Commit

Permalink
Comment out stage-image-update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-opsverse authored Jan 31, 2024
1 parent 4d741c6 commit 56e343d
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/ci-cd-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,49 +350,49 @@ jobs:
- name: "☁️ checkout repository"
uses: actions/checkout@v2

- name: "Checkout the repository"
uses: actions/checkout@v4
with:
path: main
token: ${{ secrets.GH_PAT }}
sparse-checkout: |
manifests/stage/deployment.yaml
sparse-checkout-cone-mode: false
- run: |
export YAML_FILE="apiVersion: apps/v1
kind: Deployment
metadata:
name: node-js-server-stage
labels:
app: node-js-server-stage
spec:
replicas: 1
selector:
matchLabels:
app: node-js-server-stage
template:
metadata:
labels:
app: node-js-server-stage
spec:
containers:
- name: node-js-server-stage
image: docker pull registry.devopsnow.io/internal/node-js-server:${SHORT_SHA}
ports:
- containerPort: 3000"
echo $YAML_FILE > manifests/stage/deployment-aravind.yaml
date > manifests/stage/deployment-new.yaml
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
echo "SHA= ${GITHUB_SHA}"
echo "SHORT SHA= ${SHORT_SHA}"
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "[STAGE] Update the image tag"
git push
# with:
# repository: "https://github.com/gitops-tools/image-updater"
# path: '.'
# - name: "Checkout the repository"
# uses: actions/checkout@v4
# with:
# path: main
# token: ${{ secrets.GH_PAT }}
# sparse-checkout: |
# manifests/stage/deployment.yaml
# sparse-checkout-cone-mode: false
# - run: |
# export YAML_FILE="apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: node-js-server-stage
# labels:
# app: node-js-server-stage
# spec:
# replicas: 1
# selector:
# matchLabels:
# app: node-js-server-stage
# template:
# metadata:
# labels:
# app: node-js-server-stage
# spec:
# containers:
# - name: node-js-server-stage
# image: docker pull registry.devopsnow.io/internal/node-js-server:${SHORT_SHA}
# ports:
# - containerPort: 3000"
# echo $YAML_FILE > manifests/stage/deployment-aravind.yaml
# date > manifests/stage/deployment-new.yaml
# echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
# echo "SHA= ${GITHUB_SHA}"
# echo "SHORT SHA= ${SHORT_SHA}"
# git config user.name github-actions
# git config user.email [email protected]
# git add .
# git commit -m "[STAGE] Update the image tag"
# git push
# # with:
# # repository: "https://github.com/gitops-tools/image-updater"
# # path: '.'

# - run: echo "123" > /home/runner/work/node-js-server/node-js-server/manifests/stage/deployment.yaml

Expand Down

0 comments on commit 56e343d

Please sign in to comment.