Spaces:
Sleeping
Sleeping
binary-husky
commited on
Commit
•
5b9a1e9
1
Parent(s):
b1154b3
Update docker-image.yml
Browse files
.github/workflows/docker-image.yml
CHANGED
@@ -8,7 +8,7 @@ on:
|
|
8 |
env:
|
9 |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
10 |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
11 |
-
IMAGE_NAME:
|
12 |
|
13 |
jobs:
|
14 |
build-and-push:
|
@@ -19,20 +19,21 @@ jobs:
|
|
19 |
- name: Checkout repository
|
20 |
uses: actions/checkout@v2
|
21 |
|
22 |
-
#
|
23 |
-
- name:
|
24 |
-
|
|
|
|
|
25 |
|
26 |
# Set up GitHub Packages registry
|
27 |
- name: Set up GitHub Packages registry
|
28 |
-
run: |
|
29 |
-
echo "${DOCKER_PASSWORD}" | docker login ghcr.io -u "${DOCKER_USERNAME}" --password-stdin
|
30 |
|
31 |
# Build and push the Docker image
|
32 |
- name: Build and push Docker image
|
33 |
uses: docker/build-push-action@v2
|
34 |
with:
|
35 |
context: .
|
36 |
-
|
37 |
push: true
|
38 |
tags: ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}:latest
|
|
|
8 |
env:
|
9 |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
10 |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
11 |
+
IMAGE_NAME: gpt-academic-no-local-llms
|
12 |
|
13 |
jobs:
|
14 |
build-and-push:
|
|
|
19 |
- name: Checkout repository
|
20 |
uses: actions/checkout@v2
|
21 |
|
22 |
+
# Configure Docker Buildx
|
23 |
+
- name: Configure Docker Buildx
|
24 |
+
run: |
|
25 |
+
docker buildx create --name builder
|
26 |
+
docker buildx use builder
|
27 |
|
28 |
# Set up GitHub Packages registry
|
29 |
- name: Set up GitHub Packages registry
|
30 |
+
run: echo "${DOCKER_PASSWORD}" | docker login ghcr.io -u "${DOCKER_USERNAME}" --password-stdin
|
|
|
31 |
|
32 |
# Build and push the Docker image
|
33 |
- name: Build and push Docker image
|
34 |
uses: docker/build-push-action@v2
|
35 |
with:
|
36 |
context: .
|
37 |
+
dockerfile: docs/DockerfileNoLocal
|
38 |
push: true
|
39 |
tags: ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }}:latest
|