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

Commit

Permalink
Fix Path CI / CD Docker Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
H0llyW00dzZ committed Nov 13, 2023
1 parent 5e3913f commit aad142f
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/docker-without-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
with:
repository: ${{ github.repository_owner }}/ChatGPT-Next-Web
ref: main
path: ChatGPT-Next-Web

-
name: Check out go-reverse-proxy repo
Expand All @@ -45,8 +44,13 @@ jobs:
with:
repository: ${{ github.repository_owner }}/go-reverse-proxy
ref: master
path: ChatGPT-Next-Web/go-reverse-proxy

path: ${{ runner.workspace }}/go-reverse-proxy

-
name: Copy go sum
if: ${{ github.event.inputs.build_reverse_proxy == 'yes' }}
run: |
cp ${{ runner.workspace }}/go-reverse-proxy/go.sum ${{ runner.workspace }}
-
name: Set up Go
if: ${{ github.event.inputs.build_reverse_proxy == 'yes' }}
Expand All @@ -55,17 +59,8 @@ jobs:
go-version: '1.21.3'
env:
NODE_VERSION: 18
working-directory: ChatGPT-Next-Web/go-reverse-proxy
working-directory: ${{ runner.workspace }}/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
Expand Down Expand Up @@ -98,7 +93,7 @@ jobs:
if: ${{ github.event.inputs.build_reverse_proxy == 'yes' }}
uses: docker/build-push-action@v4
with:
context: ./ChatGPT-Next-Web/go-reverse-proxy/DockerFile
context: ${{ runner.workspace }}/go-reverse-proxy
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 aad142f

Please sign in to comment.