Skip to content

Commit

Permalink
Fix release by using build-push action
Browse files Browse the repository at this point in the history
  • Loading branch information
Matts966 committed Jul 14, 2020
1 parent 5d261a1 commit 11878eb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ jobs:
tag_with_ref: true
dockerfile: docker/Dockerfile

- name: Push to Github Registry
run: |
docker tag matts966/alphasql docker.pkg.github.com/alphasql/alphasql:${GITHUB_REF#refs/tags/}
echo GITHUB_TOKEN | docker login https://docker.pkg.github.com -u DOCKER_USERNAME --password-stdin
docker push docker.pkg.github.com/alphasql/alphasql:${GITHUB_REF#refs/tags/}
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.ref }}

DOCKER_BUILDKIT: 1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: Matts966/alphasql/alphasql/
tag_with_ref: true
dockerfile: docker/Dockerfile

0 comments on commit 11878eb

Please sign in to comment.