Merge pull request #63 from elecena/dependabot/github_actions/actions… #65
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: Publish Docker image to ghcr.io | |
| on: | |
| # publish on releases (tagged as "x.y.z" - "v" prefix is removed) | |
| release: | |
| types: [ published ] | |
| # publish on pushes to the main branch | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| docker_publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.1 | |
| # https://github.com/marketplace/actions/push-to-ghcr | |
| - name: Build and publish a Docker image for ${{ github.repository }} | |
| uses: macbre/push-to-ghcr@master | |
| with: | |
| image_name: ${{ github.repository }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |