Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Mar 23, 2024
1 parent e0eaa01 commit 5ceb6e6
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ env:
DEPLOYMENT: ${{ secrets.DEPLOYMENT }}

CLUSTER_NAME: ${{ secrets.CLUSTER_NAME }}

NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
GKE_PROJECT: ${{ secrets.GKE_PROJECT }}
GKE_ZONE: ${{ secrets.GKE_ZONE }}
GKE_ZONE_CLUSTER: ${{ secrets.GKE_ZONE_CLUSTER }}
Expand All @@ -34,10 +32,10 @@ jobs:
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildtoogle-cache
# key: ${{ runner.os }}-buildtoogle-${{ github.sha }}
# path: /tmp/.buildsslatt-cache
# key: ${{ runner.os }}-buildsslatt-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildtoogle-
# ${{ runner.os }}-buildsslatt-

- name: Get short SHA
id: slug
Expand Down Expand Up @@ -84,19 +82,18 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}:${{ env.IMAGE }}-${{ steps.slug.outputs.sha7 }},${{ env.REGISTRY }}:latest
platforms: linux/amd64
# cache-from: type=local,src=/tmp/.buildtoogle-cache
# cache-to: type=local,dest=/tmp/.buildtoogle-cache-new,mode=max
# cache-from: type=local,src=/tmp/.buildsslatt-cache
# cache-to: type=local,dest=/tmp/.buildsslatt-cache-new,mode=max
build-args: |
GITHUB_SHA=${{ github.sha }}
GITHUB_REF=${{ github.ref }}
NPM_AUTH_TOKEN=${{ secrets.NPM_AUTH_TOKEN }}
NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_CDN_URL=${{ secrets.NEXT_PUBLIC_CDN_URL }}
# - name: Move cache
# run: |
# rm -rf /tmp/.buildtoogle-cache
# mv /tmp/.buildtoogle-cache-new /tmp/.buildtoogle-cache
# rm -rf /tmp/.buildsslatt-cache
# mv /tmp/.buildsslatt-cache-new /tmp/.buildsslatt-cache

# Deploy the Docker image to the GKE cluster
- name: Deploy/Update new Image to Kubernetes
Expand Down

0 comments on commit 5ceb6e6

Please sign in to comment.