fix docker layer caching
I should really read the code of this step...
This commit is contained in:
@@ -17,8 +17,6 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: frontend/yarn.lock
|
|
||||||
- name: Cache NPM packages
|
- name: Cache NPM packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@@ -57,10 +55,11 @@ jobs:
|
|||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
push: false
|
push: false
|
||||||
tags: kemkas/kemkas
|
load: true
|
||||||
|
tags: kemkas/kemkas:edge
|
||||||
- name: Tag container image
|
- name: Tag container image
|
||||||
run: |
|
run: |
|
||||||
docker tag kemkas/kemkas registry.digitalocean.com/kemkas/kemkas:${GITHUB_SHA::8}
|
docker tag kemkas/kemkas:edge registry.digitalocean.com/kemkas/kemkas:${GITHUB_SHA::8}
|
||||||
- name: Push image to Container Registry
|
- name: Push image to Container Registry
|
||||||
run: |
|
run: |
|
||||||
docker push registry.digitalocean.com/kemkas/kemkas:latest
|
docker push registry.digitalocean.com/kemkas/kemkas:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user