-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment out stage-image-update logic
- Loading branch information
1 parent
4d741c6
commit 56e343d
Showing
1 changed file
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|