diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 54f45df..ff3998e 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -1,25 +1,21 @@ name: Publish Docker image on: release: - types: [published] + types: [published, edited] jobs: push_to_registry: - name: Push Docker image to GitHub Packages + name: Push Docker image to Docker Hub runs-on: ubuntu-latest - permissions: - packages: write - contents: read steps: - name: Check out the repo uses: actions/checkout@v2 - - name: Log in to GitHub Docker Registry + - name: Log in to Docker Hub uses: docker/login-action@v1 with: - registry: docker.pkg.github.com - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build container image + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Push to Docker Hub uses: docker/build-push-action@v2 with: push: true - tags: docker.pkg.github.com/${{ github.repository }}/beatnik:latest + tags: nickseman/beatnik:latest