Skip to content

Chore: remove legacy tools from tools repo (#757) #167

Chore: remove legacy tools from tools repo (#757)

Chore: remove legacy tools from tools repo (#757) #167

Workflow file for this run

name: Build release tools
permissions:
id-token: write
contents: read
packages: write
on:
push:
branches:
- main
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: |
ghcr.io/${{ github.repository }}:latest
- 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: ghcr.io/${{ github.repository }}:latest
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}