Merge pull request #171 from linuxfoundation/feat/LFXV2-2990-weekly-b… #144
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
| # Copyright The Linux Foundation and each contributor to LFX. | |
| # SPDX-License-Identifier: MIT | |
| --- | |
| name: Publish Main | |
| "on": | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| name: Publish Main | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - uses: ko-build/setup-ko@v0.8 | |
| with: | |
| version: v0.17.1 | |
| - name: Build and publish committee-api image | |
| env: | |
| VERSION: development | |
| GIT_COMMIT: ${{ github.sha }} | |
| run: | | |
| BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') | |
| export BUILD_TIME | |
| GIT_COMMIT=${GIT_COMMIT:0:7} | |
| export GIT_COMMIT | |
| ko build github.com/linuxfoundation/lfx-v2-committee-service/cmd/committee-api \ | |
| -B \ | |
| --platform linux/amd64,linux/arm64 \ | |
| -t ${{ github.sha }} \ | |
| -t development \ | |
| --sbom spdx | |
| - name: Build and publish committee-cli image | |
| env: | |
| VERSION: development | |
| GIT_COMMIT: ${{ github.sha }} | |
| run: | | |
| BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S') | |
| export BUILD_TIME | |
| GIT_COMMIT=${GIT_COMMIT:0:7} | |
| export GIT_COMMIT | |
| ko build github.com/linuxfoundation/lfx-v2-committee-service/cmd/committee-cli \ | |
| -B \ | |
| --platform linux/amd64,linux/arm64 \ | |
| -t ${{ github.sha }} \ | |
| -t development \ | |
| --sbom spdx |