Skip to content

Commit 0252db9

Browse files
authored
Merge pull request #133 from Dogtiti/feature/docker
fix: docker args
2 parents c9e6dd8 + a413ca0 commit 0252db9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Build and publish the Docker image
22

33
on:
4-
push:
5-
branches: ["main"]
4+
workflow_dispatch:
5+
release:
6+
types: [published]
67

78
env:
89
REGISTRY: docker.io
9-
IMAGE_NAME: ${{ github.repository }}
10+
IMAGE_NAME: Dogtititi/AutoGPT-Next-Web
1011

1112
jobs:
1213
build-and-push-image:
@@ -27,7 +28,7 @@ jobs:
2728
password: ${{ secrets.DOCKER_TOKEN }}
2829
- name: Extract metadata (tags, labels) for Docker
2930
id: meta
30-
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96
31+
uses: docker/metadata-action@v4
3132
with:
3233
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3334

@@ -39,6 +40,6 @@ jobs:
3940
NEXTAUTH_URL=http://localhost:3000
4041
DATABASE_URL=file:../db/db.sqlite
4142
SKIP_ENV_VALIDATION=1
42-
push: ${{ github.event_name != 'pull_request' }}
43+
push: true
4344
tags: ${{ steps.meta.outputs.tags }}
4445
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)