Skip to content

Commit

Permalink
Merge pull request #2624 from Significant-Gravitas/richbeales-patch-2
Browse files Browse the repository at this point in the history
Patch docker hub CI task into Stable
  • Loading branch information
richbeales committed Apr 20, 2023
2 parents 97d62cc + 664f896 commit 0fa9cf6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dockerhub-imagepush.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Push Docker Image on Release

on:
push:
branches: [ "stable" ]
release:
types: [published]

jobs:

Expand All @@ -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

0 comments on commit 0fa9cf6

Please sign in to comment.