Skip to content

Commit

Permalink
Merge pull request #35 from tharun634/patch-1
Browse files Browse the repository at this point in the history
move registry to ghcr.io
  • Loading branch information
muety authored Feb 27, 2022
2 parents 525721e + bc39e18 commit 83f8487
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to Docker Hub
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
push: true
tags: |
n1try/webhook2telegram:${{ env.GIT_TAG }}
n1try/webhook2telegram:latest
ghcr.io/n1try/webhook2telegram:${{ env.GIT_TAG }}
ghcr.io/n1try/webhook2telegram:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit 83f8487

Please sign in to comment.