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 518a2f2..04ec800 100644 Binary files a/k8s/website/deployment.yaml and b/k8s/website/deployment.yaml differ