-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.22 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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/*