Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Update dockerhub-imagepush.yml

Richard Beales664f89669658
diff --git a/.github/workflows/dockerhub-imagepush.yml b/.github/workflows/dockerhub-imagepush.yml
index 814e2756d5..ae03fe22f3 100644
--- a/.github/workflows/dockerhub-imagepush.yml
+++ b/.github/workflows/dockerhub-imagepush.yml
@@ -19,6 +19,9 @@ jobs:
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
- run: docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/auto-gpt:$(git describe --tags `git rev-list --tags --max-count=1`)
+ run: |
+ tag_v=$(git describe --tags $(git rev-list --tags --max-count=1))
+ tag=$(echo $tag_v | sed 's/v//')
+ docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/auto-gpt:${tag}
- name: Docker Push
run: docker push ${{secrets.DOCKER_USER}}/auto-gpt