Update main.yml
This commit is contained in:
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@@ -54,6 +54,15 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Cache Docker layers
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-docker-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-docker-
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -67,8 +76,8 @@ jobs:
|
||||
IMAGE_TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--cache-from=type=gha \
|
||||
--cache-to=type=gha,mode=max \
|
||||
--cache-from=type=gha,ref=ghcr.io/coder-vippro/chatgpt-discord-bot:cache \
|
||||
--cache-to=type=gha,mode=max,ref=ghcr.io/coder-vippro/chatgpt-discord-bot:cache \
|
||||
--push \
|
||||
-t $IMAGE_NAME:$IMAGE_TAG .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user