Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build-providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
push:
branches:
- main
tags:
- "v*"

jobs:
providers-build:
Expand Down Expand Up @@ -37,21 +39,20 @@ jobs:
target: providers
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/obot-platform/tools/providers:latest
${{ github.ref_type == 'tag' && format('ghcr.io/obot-platform/tools/providers:{0}', github.ref_name) || 'ghcr.io/obot-platform/tools/providers:latest' }}

- name: Install Cosign
uses: sigstore/cosign-installer@v3.8.1
with:
cosign-release: 'v2.4.3'
cosign-release: "v2.4.3"

- name: Sign Images
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ghcr.io/obot-platform/tools/providers:latest
TAGS: ${{ github.ref_type == 'tag' && format('ghcr.io/obot-platform/tools/providers:{0}', github.ref_name) || 'ghcr.io/obot-platform/tools/providers:latest' }}
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}

8 changes: 5 additions & 3 deletions .github/workflows/build-tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
push:
branches:
- main
tags:
- "v*"

jobs:
oss-tools-build:
Expand Down Expand Up @@ -37,17 +39,17 @@ jobs:
target: tools
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ github.repository }}:latest
${{ github.ref_type == 'tag' && format('ghcr.io/obot-platform/tools/tools:{0}', github.ref_name) || 'ghcr.io/${{ github.repository }}:latest' }}

- name: Install Cosign
uses: sigstore/cosign-installer@v3.8.1
with:
cosign-release: 'v2.4.3'
cosign-release: "v2.4.3"

- name: Sign Images
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ghcr.io/${{ github.repository }}:latest
TAGS: ${{ github.ref_type == 'tag' && format('ghcr.io/obot-platform/tools/tools:{0}', github.ref_name) || 'ghcr.io/${{ github.repository }}:latest' }}
run: |
images=""
for tag in ${TAGS}; do
Expand Down
Loading