Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Fix & Feat CI / CD Docker Builder
Browse files Browse the repository at this point in the history
[+] fix(docker-without-tag.yml): fix typo in DockerFile path for building reverse proxy image
[+] feat(docker-without-tag.yml): add caching of Go dependencies for reverse proxy build
  • Loading branch information
H0llyW00dzZ committed Nov 13, 2023
1 parent 6543793 commit 5e3913f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker-without-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ jobs:
env:
NODE_VERSION: 18
working-directory: ChatGPT-Next-Web/go-reverse-proxy

-
name: Cache Go dependencies
if: ${{ github.event.inputs.build_reverse_proxy == 'yes' }}
uses: actions/cache@v3
with:
path: ChatGPT-Next-Web/go-reverse-proxy
key: ${{ runner.os }}-go-${{ hashFiles('ChatGPT-Next-Web/go-reverse-proxy/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Log in to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -87,7 +98,7 @@ jobs:
if: ${{ github.event.inputs.build_reverse_proxy == 'yes' }}
uses: docker/build-push-action@v4
with:
context: ./ChatGPT-Next-Web/go-reverse-proxy/DockerFiles
context: ./ChatGPT-Next-Web/go-reverse-proxy/DockerFile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/h0llyw00dzz/chatgpt-next-web:${{ github.event.inputs.go_reverse_proxy_tag }}
Expand Down

0 comments on commit 5e3913f

Please sign in to comment.