From dc9b2c4817b382811ec73f783c0384b24bf8e8ee Mon Sep 17 00:00:00 2001 From: Isala Piyarisi Date: Sun, 1 Sep 2019 14:21:37 +0530 Subject: [PATCH] Update CI/CD Pipeline --- .github/DockerFile | 2 +- .github/workflows/dockerimage.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/DockerFile b/.github/DockerFile index e62f394..28b95db 100755 --- a/.github/DockerFile +++ b/.github/DockerFile @@ -1,2 +1,2 @@ -FROM nginx +FROM nginx:alpine COPY . /usr/share/nginx/html/ \ No newline at end of file diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 787eccd..c0f0e67 100755 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -29,12 +29,12 @@ jobs: docker tag $IMAGE_NAME $IMAGE_NAME:commit-${GITHUB_SHA} docker tag $IMAGE_NAME $IMAGE_NAME:production env: - IMAGE_NAME: docker.pkg.github.com/mrsupiri/isala.me/isala.me + IMAGE_NAME: docker.pkg.github.com/mrsupiri/isala.me/isala-website - name: Push to Docker registry run: docker push $IMAGE_NAME env: - IMAGE_NAME: docker.pkg.github.com/mrsupiri/isala.me/isala.me + IMAGE_NAME: docker.pkg.github.com/mrsupiri/isala.me/isala-website - name: Deploy to Cluster - run: kubectl set image deployment isala-me-deployment isala-me=${IMAGE_NAME}:commit-${GITHUB_SHA} + run: kubectl set image deployment isala-me-deployment isala-website=${IMAGE_NAME}:commit-${GITHUB_SHA} env: - IMAGE_NAME: docker.pkg.github.com/mrsupiri/isala.me/isala.me + IMAGE_NAME: docker.pkg.github.com/mrsupiri/isala.me/isala-website