fix: workflow path #200
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 release tools | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*" | |
| jobs: | |
| oss-tools-build: | |
| runs-on: depot-ubuntu-22.04 | |
| concurrency: | |
| group: oss-tools-build | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and Push Docker image | |
| uses: depot/build-push-action@v1 | |
| id: build-and-push | |
| with: | |
| project: bbqjs4tj1g | |
| context: . | |
| push: true | |
| pull: true | |
| target: tools | |
| platforms: linux/amd64,linux/arm64 | |
| tags: | | |
| ${{ github.ref_type == 'tag' && format('ghcr.io/obot-platform/tools:{0}', github.ref_name) || format('ghcr.io/{0}:latest', github.repository) }} | |
| - name: Install Cosign | |
| uses: sigstore/cosign-installer@v3.8.1 | |
| with: | |
| cosign-release: "v2.4.3" | |
| - name: Sign Images | |
| env: | |
| DIGEST: ${{ steps.build-and-push.outputs.digest }} | |
| TAGS: ${{ github.ref_type == 'tag' && format('ghcr.io/obot-platform/tools:{0}', github.ref_name) || format('ghcr.io/{0}:latest', github.repository) }} | |
| run: | | |
| images="" | |
| for tag in ${TAGS}; do | |
| images+="${tag}@${DIGEST} " | |
| done | |
| cosign sign --yes ${images} |