Skip to content

Commit

Permalink
only push to DockerHub
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimsonTome authored May 4, 2023
1 parent 7b1f342 commit a4b7623
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
push_to_registries:
name: Push Docker image to multiple registries
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
Expand All @@ -27,21 +27,13 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/hullblogs
ghcr.io/${{ github.repository }}
- name: Build and push Docker images
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
Expand Down

0 comments on commit a4b7623

Please sign in to comment.