From 9b8c4916ddfa69e3f8720bca3a0109ed2072eaa9 Mon Sep 17 00:00:00 2001 From: Srinath Vasudevan Date: Sat, 3 Aug 2024 01:04:33 -0400 Subject: [PATCH] new workflows --- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ k8s/website/deployment.yaml | Bin 1706 -> 1712 bytes 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94cbb50..08a3f6d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: Website build test +name: Site Build on: push: branches: [ main ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..86ad9fa --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release Build + +on: + push: + tags: + - 'v*' # Triggers on version tags like v1.0, v2.1, etc. + release: + types: [published] + +jobs: + release-build: + name: Release Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Dependencies + run: npm install + - name: Build + run: npm run build + - name: Build Docker Image + run: docker build -t ${{ secrets.REGISTRY_URL }}/srinath-tech:latest . + - name: Push Docker Image + run: | + echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + docker push ${{ secrets.REGISTRY_URL }}/srinath-tech:latest \ No newline at end of file diff --git a/k8s/website/deployment.yaml b/k8s/website/deployment.yaml index 518a2f278735a2dc95ddfb18f0e3b7eb73232704..04ec800458ab97e7d4d186675c1b196c69cebcf5 100644 GIT binary patch delta 32 ocmZ3*yMcE@6$^I`Ln1>7Ln=ctL&@ZWETWUSScNt(V_{(e0Gx#gzW@LL delta 18 ZcmdnMyNY*16$`5&gC2vy=2jMMCIB;B1fT!_