diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5efd0d3..e62d445 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: - name: Build run: |- docker build \ - --tag "$DOCKER_HUB_USERNAME/$IMAGE:$GITHUB_SHA" \ + --tag "$DOCKER_HUB_USERNAME/$IMAGE:latest" \ --build-arg GITHUB_SHA="$GITHUB_SHA" \ --build-arg GITHUB_REF="$GITHUB_REF" \ . @@ -55,7 +55,7 @@ jobs: # Push the Docker image - name: Push run: |- - docker push "$DOCKER_HUB_USERNAME/$IMAGE:$GITHUB_SHA" + docker push "$DOCKER_HUB_USERNAME/$IMAGE:latest" # Get the access token - name: Get access token @@ -66,6 +66,6 @@ jobs: # Deploy the Docker image to the GKE cluster - name: Deploy run: |- - kubectl set image deployment/$DEPLOYMENT_NAME $DEPLOYMENT_NAME=$DOCKER_HUB_USERNAME/$IMAGE:$GITHUB_SHA --token "${{ steps.get-access-token.outputs.access_token }}" + kubectl set image deployment/$DEPLOYMENT_NAME $DEPLOYMENT_NAME=$DOCKER_HUB_USERNAME/$IMAGE:latest --token "${{ steps.get-access-token.outputs.access_token }}" kubectl rollout status deployment/$DEPLOYMENT_NAME --token "${{ steps.get-access-token.outputs.access_token }}" kubectl get services -o wide --token "${{ steps.get-access-token.outputs.access_token }}" diff --git a/ci/deployment.yml b/ci/deployment.yml index 029115a..bf9c065 100644 --- a/ci/deployment.yml +++ b/ci/deployment.yml @@ -14,6 +14,6 @@ spec: spec: containers: - name: ranter - image: spantheslayer/ranter-dev-image + image: spantheslayer/ranter-dev-image:latest ports: - containerPort: 8080