Skip to content

Commit

Permalink
Pushing the images to GHCR.IO
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveenraj-K committed Oct 14, 2024
1 parent 611f587 commit 23e42f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_ORG }}/php8
images: |
${{ vars.DOCKER_ORG }}/php8
ghcr.io/${{ github.repository_owner }}/php8
tags: |
type=ref,event=branch
# set latest tag for default branch
Expand Down

0 comments on commit 23e42f6

Please sign in to comment.