fix: run as non-root user, drop RUNNER_ALLOW_RUNASROOT #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Push Runner Image | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'Dockerfile' | |
| - 'entrypoint.sh' | |
| permissions: | |
| packages: write | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/remmik/linux-github-runner:latest |