Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable #2272

Merged
merged 10 commits into from
Apr 20, 2023
8 changes: 6 additions & 2 deletions .github/workflows/dockerhub-imagepush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Push Docker Image on Release

on:
release:
types: [published]
types: [published,edited]

jobs:

Expand All @@ -24,4 +24,8 @@ jobs:
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
run: |
tag_v2=$(git describe --tags $(git rev-list --tags --max-count=1))
tag2=$(echo $tag_v | sed 's/v//')
docker push ${{secrets.DOCKER_USER}}/auto-gpt:${tag2}