Build windmill-staging #19
Workflow file for this run
This file contains 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
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
name: Build windmill-staging | |
on: | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
build_ee: | |
runs-on: ubicloud | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Read EE repo commit hash | |
run: | | |
echo "ee_repo_ref=$(cat ./backend/ee-repo-ref.txt)" >> "$GITHUB_ENV" | |
- uses: actions/checkout@v4 | |
with: | |
repository: windmill-labs/windmill-ee-private | |
path: ./windmill-ee-private | |
ref: ${{ env.ee_repo_ref }} | |
token: ${{ secrets.WINDMILL_EE_PRIVATE_ACCESS }} | |
fetch-depth: 0 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v2 | |
- uses: depot/setup-action@v1 | |
- name: Docker meta | |
id: meta-ee-public | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-staging-ee | |
flavor: | | |
latest=false | |
tags: | | |
type=sha | |
type=ref,event=branch | |
- name: Login to registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Substitute EE code | |
run: | | |
./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private | |
- name: Build and push publicly ee | |
uses: depot/build-push-action@v1 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
build-args: | | |
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc | |
secrets: | | |
rh_username=${{ secrets.RH_USERNAME }} | |
rh_password=${{ secrets.RH_PASSWORD }} | |
tags: | | |
${{ steps.meta-ee-public.outputs.tags }} | |
labels: | | |
${{ steps.meta-ee-public.outputs.labels }} | |
org.opencontainers.image.licenses=Windmill-Enterprise-License |