Skip to content

Commit

Permalink
Adding GHCR build and push (#7)
Browse files Browse the repository at this point in the history
* Adding GHCR to the workflow
* Correcting secret names
  • Loading branch information
rsoper authored Aug 16, 2021
1 parent b26b3f9 commit 575be16
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ jobs:
version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the images
- name: build and push to docker hub
run: |
docker buildx build --push \
--tag richardsoper/discord-role-bot:latest \
--platform linux/amd64,linux/arm64 .
--platform linux/amd64,linux/arm64 .
- name: login to ghcr
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login ghcr.io -u "${{ secrets.GHCR_USERNAME }}" --password-stdin
- name: build and push to ghcr
run: |
docker buildx build --push \
--tag ghcr.io/rsoper/discord-role-bot:latest \
--platform linux/amd64,linux/arm64 .

0 comments on commit 575be16

Please sign in to comment.