From 653cc0f58350f0c78d7da0be3bc0ca95e130dc0e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 3 Apr 2024 23:53:38 +0200 Subject: [PATCH] chore: split out nsjail from public images --- .github/workflows/docker-image.yml | 92 +++++++++++++++--------------- docker/DockerfileReports | 2 +- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index a0b97ed47c..68e4dcc96f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -147,52 +147,6 @@ jobs: ${{ steps.meta-ee-public.outputs.labels }} org.opencontainers.image.licenses=Windmill-Enterprise-License - build_ee_reports_privately: - needs: [build_ee] - runs-on: ubicloud - steps: - - uses: actions/checkout@v3 - with: - 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.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}-ee-reports - tags: | - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=sha,enable=true,priority=100,prefix=,suffix=,format=short - - - name: Login to ECR - if: github.event_name != 'pull_request' - uses: docker/login-action@v2 - with: - registry: ${{ env.ECR_REGISTRY }} - username: ${{ secrets.AWS_ACCESS_KEY_ID }} - password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - - - name: Build and push publicly ee reports - uses: depot/build-push-action@v1 - with: - context: . - platforms: linux/amd64 - push: true - file: "./docker/DockerfileReports" - tags: | - ${{ steps.meta-ee-public.outputs.tags }} - labels: | - ${{ steps.meta-ee-public.outputs.labels }} - org.opencontainers.image.licenses=Windmill-Enterprise-License - # disabled until we make it 100% reliable and add more meaningful tests # playwright: # runs-on: [self-hosted, new] @@ -437,6 +391,52 @@ jobs: ${{ steps.meta-ee-public.outputs.labels }} org.opencontainers.image.licenses=Windmill-Enterprise-License + build_ee_reports_privately: + needs: [build_ee_nsjail] + runs-on: ubicloud + steps: + - uses: actions/checkout@v3 + with: + 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.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}-ee-reports + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=sha,enable=true,priority=100,prefix=,suffix=,format=short + + - name: Login to ECR + if: github.event_name != 'pull_request' + uses: docker/login-action@v2 + with: + registry: ${{ env.ECR_REGISTRY }} + username: ${{ secrets.AWS_ACCESS_KEY_ID }} + password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + + - name: Build and push publicly ee reports + uses: depot/build-push-action@v1 + with: + context: . + platforms: linux/amd64 + push: true + file: "./docker/DockerfileReports" + tags: | + ${{ steps.meta-ee-public.outputs.tags }} + labels: | + ${{ steps.meta-ee-public.outputs.labels }} + org.opencontainers.image.licenses=Windmill-Enterprise-License + publish_ecr_s3: needs: [build_ee_nsjail] runs-on: ubicloud diff --git a/docker/DockerfileReports b/docker/DockerfileReports index 953817064d..1778ff3cc0 100644 --- a/docker/DockerfileReports +++ b/docker/DockerfileReports @@ -1,4 +1,4 @@ -FROM ghcr.io/windmill-labs/windmill-ee:dev +FROM ghcr.io/windmill-labs/windmill-ee-nsjail:main RUN apt-get update RUN apt-get install -y chromium \ No newline at end of file