Skip to content

Commit

Permalink
chore build
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Mar 23, 2024
1 parent b6461ec commit e0eaa01
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildtoogle-cache
key: ${{ runner.os }}-buildtoogle-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildtoogle-
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildtoogle-cache
# key: ${{ runner.os }}-buildtoogle-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildtoogle-

- name: Get short SHA
id: slug
Expand Down Expand Up @@ -84,19 +84,19 @@ 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/.buildtoogle-cache
# cache-to: type=local,dest=/tmp/.buildtoogle-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
# - name: Move cache
# run: |
# rm -rf /tmp/.buildtoogle-cache
# mv /tmp/.buildtoogle-cache-new /tmp/.buildtoogle-cache

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

0 comments on commit e0eaa01

Please sign in to comment.