Skip to content

Commit

Permalink
fix: use docker hub instead
Browse files Browse the repository at this point in the history
  • Loading branch information
vphoebe committed Jun 6, 2021
1 parent 9a85379 commit f3dce36
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f3dce36

Please sign in to comment.