Skip to content

Commit

Permalink
build: push pull request images to ghcr.io
Browse files Browse the repository at this point in the history
Should help with debugging...
  • Loading branch information
plexoos committed Aug 1, 2024
1 parent 1f2e89d commit f194c61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ jobs:
- name: Set up docker
uses: docker/setup-buildx-action@v3

- name: Login to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: .
tags: ${{ env.IMAGE_NAME }}:${{ env.TAG }}
load: true
push: true
cache-from: |
type=local,src=/home/runner/.buildx-cache
type=registry,ref=${{ env.IMAGE_NAME }}:latest
Expand Down

0 comments on commit f194c61

Please sign in to comment.