diff --git a/.github/workflows/edge-release.yaml b/.github/workflows/edge-release.yaml new file mode 100644 index 00000000..8c87bb50 --- /dev/null +++ b/.github/workflows/edge-release.yaml @@ -0,0 +1,42 @@ +name: Edge Release + +on: + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + release: + runs-on: ubuntu-22.04 + strategy: + matrix: + fips: [yes, no] + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.ref }} + - 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 + - run: echo "${{ secrets.ARTIFACT_IMG_PUSH_EDGE }}" | base64 -d | docker login -u _json_key --password-stdin us-docker.pkg.dev + - name: Build artifacts + env: + FIPS_ENABLE: ${{ matrix.fips }} + run: | + if [ ${{ matrix.fips }} = "yes" ]; then + export REPOSITORY=us-docker.pkg.dev/palette-images-fips/edge + else + export REPOSITORY=us-docker.pkg.dev/palette-images/edge + fi + make docker diff --git a/Makefile b/Makefile index 5015b538..bc737ea0 100644 --- a/Makefile +++ b/Makefile @@ -17,13 +17,12 @@ LDFLAGS=-ldflags "-s -w -X=main.Version=$(VERSION) -X=main.Build=$(BUILD) -extld DOCKERTAG ?= $(VERSION) REPOSITORY ?= gcr.io/spectro-dev-public/release -GOLANG_VERSION=1.22 +GOLANG_VERSION=1.23 FIPS_ENABLE ?= "" BUILD_ARGS = --build-arg CRYPTO_LIB=${FIPS_ENABLE} --build-arg GOLANG_VERSION=${GOLANG_VERSION} PLATFORM ?= "linux/amd64,linux/arm64" ifeq ($(FIPS_ENABLE),yes) REPOSITORY = gcr.io/spectro-dev-public/release-fips - PLATFORM = "linux/amd64" endif