From 9d1841f13b27df2f3f8684b07ecf7473c16144c0 Mon Sep 17 00:00:00 2001 From: antondlr Date: Thu, 20 Jun 2024 13:19:46 +0200 Subject: [PATCH] build docker --- .github/workflows/docker.yml | 37 +++--------------------------------- 1 file changed, 3 insertions(+), 34 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b600fe2e..328c3dfd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,6 +5,7 @@ on: branches: - unstable - stable + - fix-workflows tags: - v* @@ -41,32 +42,6 @@ jobs: outputs: VERSION: ${{ env.VERSION }} VERSION_SUFFIX: ${{ env.VERSION_SUFFIX }} - build-html: - name: build html - runs-on: ubuntu-22.04 - needs: [extract-version] - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Use node 18 - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: 'yarn' - - name: Install dependencies - env: - NODE_ENV: development - run: | - yarn - - name: Build Siren - env: - NODE_ENV: production - run: yarn build - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: html - path: build/ build-docker-single-arch: name: build-docker-${{ matrix.binary }} @@ -75,7 +50,7 @@ jobs: matrix: binary: [aarch64, x86_64] - needs: [extract-version, build-html] + needs: [extract-version] env: # We need to enable experimental docker features in order to use `docker buildx` DOCKER_CLI_EXPERIMENTAL: enabled @@ -93,18 +68,12 @@ jobs: - name: Map x86_64 to amd64 short arch if: startsWith(matrix.binary, 'x86_64') run: echo "SHORT_ARCH=amd64" >> $GITHUB_ENV; - - name: Download artifacts - uses: actions/download-artifact@v3 - with: - name: html - path: html/ - name: Build Dockerfile and push run: | docker buildx build \ --platform=linux/${SHORT_ARCH} \ - --file ./Dockerfile.release . \ + --file ./Dockerfile . \ --tag ${IMAGE_NAME}:${VERSION}-${SHORT_ARCH}${VERSION_SUFFIX} \ - --provenance=false \ --push build-docker-multiarch: