diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a4455f2c..b65f146f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,3 +29,16 @@ jobs: run: | python setup.py sdist bdist_wheel twine upload dist/* + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider:${{ github.ref }}