Publish container #1957
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 container | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: [test] | |
| types: | |
| - completed | |
| branches: | |
| - master | |
| jobs: | |
| publish_container: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: podman login -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io | |
| - run: podman build -t ghcr.io/${{ github.repository }} . | |
| - run: podman push ghcr.io/${{ github.repository }} |