Skip to content

Commit

Permalink
Push to ghcr.io (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Mar 16, 2023
1 parent 4c09064 commit d2acc9f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,26 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and Push to Docker Hub
- name: Build and Push to Registries
uses: docker/build-push-action@v4
with:
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
tags: qmkfm/base_container:latest
tags: |
ghcr.io/qmk/qmk_base_container:latest
qmkfm/base_container:latest

0 comments on commit d2acc9f

Please sign in to comment.