Fix UI workflow

This commit is contained in:
Théophile Diot 2023-09-06 10:13:46 +02:00
parent d1dd1fbae7
commit 947690af8f
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -7,51 +7,35 @@ on:
branches: [ui] branches: [ui]
jobs: jobs:
# Containers # Containers
build-bw: build-containers:
permissions:
contents: read
packages: write
strategy:
matrix:
image: [bunkerweb, scheduler, ui]
include:
- image: bunkerweb
dockerfile: src/bw/Dockerfile
- image: scheduler
dockerfile: src/scheduler/Dockerfile
- image: ui
dockerfile: src/ui/Dockerfile
uses: ./.github/workflows/container-build.yml uses: ./.github/workflows/container-build.yml
with: with:
RELEASE: ui RELEASE: ui
CACHE: true
ARCH: linux/amd64 ARCH: linux/amd64
IMAGE: bunkerweb IMAGE: ${{ matrix.image }}
DOCKERFILE: src/bw/Dockerfile DOCKERFILE: ${{ matrix.dockerfile }}
secrets: secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
PRIVATE_REGISTRY: ${{ secrets.PRIVATE_REGISTRY }}
PRIVATE_REGISTRY_TOKEN: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
build-sc:
uses: ./.github/workflows/container-build.yml
with:
RELEASE: ui
ARCH: linux/amd64
IMAGE: scheduler
DOCKERFILE: src/scheduler/Dockerfile
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
PRIVATE_REGISTRY: ${{ secrets.PRIVATE_REGISTRY }}
PRIVATE_REGISTRY_TOKEN: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
build-ui:
uses: ./.github/workflows/container-build.yml
with:
RELEASE: ui
ARCH: linux/amd64
IMAGE: ui
DOCKERFILE: src/ui/Dockerfile
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
PRIVATE_REGISTRY: ${{ secrets.PRIVATE_REGISTRY }}
PRIVATE_REGISTRY_TOKEN: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
# UI tests # UI tests
tests-ui: tests-ui:
needs: [build-bw, build-sc, build-ui] needs: [build-containers]
uses: ./.github/workflows/tests-ui.yml uses: ./.github/workflows/tests-ui.yml
with: with:
RELEASE: ui RELEASE: ui
secrets:
PRIVATE_REGISTRY: ${{ secrets.PRIVATE_REGISTRY }}
PRIVATE_REGISTRY_TOKEN: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}