Merge pull request #311 from spectrocloud/update-pe-version-v4.8.3-rc… #160
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: release | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@master | |
| with: | |
| platforms: all | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@master | |
| - name: Install earthly | |
| uses: earthly/actions-setup@v1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| version: "latest" | |
| use-cache: true | |
| - name: Build artifacts | |
| run: | | |
| set -x | |
| earthly --ci --output +release \ | |
| --VERSION=${{ github.ref_name }} | |
| - name: Build FIPS artifacts | |
| run: | | |
| set -x | |
| earthly --ci --output +release-fips \ | |
| --VERSION=${{ github.ref_name }} \ | |
| --SPECTRO_PUB_REPO=us-docker.pkg.dev/palette-images-fips | |
| - name: Upload release artifacts | |
| uses: softprops/action-gh-release@v2 | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| with: | |
| files: build/* |