Skip to content

Commit

Permalink
Merge pull request #5 from WyriHaximusNet/docker-login-through-action
Browse files Browse the repository at this point in the history
Docker login through action
  • Loading branch information
WyriHaximus authored Sep 16, 2024
2 parents a57480d + 7b2a22b commit 284e8f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/wyhrihaximusnet/docker-github-action-runner:latest
platforms: linux/amd64,linux/arm64
secrets: |
GIT_AUTH_TOKEN=${{ secrets.GHCR_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# docker-github-action-runner

Opinionated GitHub Action Runner image

0 comments on commit 284e8f4

Please sign in to comment.