Merge pull request #1986 from Significant-Gravitas/richbeales-patch-2

Update docker-hub image push action
This commit is contained in:
BillSchumacher
2023-04-19 23:57:56 -05:00
committed by GitHub

View File

@@ -1,8 +1,8 @@
name: Push Docker Image on Release
on:
push:
branches: [ "stable" ]
release:
types: [published]
jobs:
@@ -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