fix: correct YAML syntax and runner labels in workflow files #15
Workflow file for this run
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 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} | |
| IMAGE_NAME: bluefin-common | |
| jobs: | |
| build_push: | |
| name: Build and push image | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Build Image | |
| id: build | |
| run: | | |
| buildah build -t ${{ env.IMAGE_NAME }}:latest -f ./Containerfile . | |
| - name: Login to GitHub Container Registry | |
| if: github.event_name != 'pull_request' | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | podman login -u "${{ github.actor }}" --password-stdin ghcr.io | |
| - name: Push Image | |
| if: github.event_name != 'pull_request' | |
| run: | | |
| podman push ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
| # - name: Install Cosign | |
| # uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1 | |
| # if: github.event_name != 'pull_request' | |
| # - name: Sign container image | |
| # if: github.event_name != 'pull_request' | |
| # run: | | |
| # cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
| # env: | |
| # COSIGN_EXPERIMENTAL: false | |
| # COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }} |