Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
spantheslayer committed Nov 11, 2023
1 parent 195de11 commit 1e178a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
.
Expand All @@ -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
Expand All @@ -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 }}"
2 changes: 1 addition & 1 deletion ci/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ spec:
spec:
containers:
- name: ranter
image: spantheslayer/ranter-dev-image
image: spantheslayer/ranter-dev-image:latest
ports:
- containerPort: 8080

0 comments on commit 1e178a0

Please sign in to comment.