From cb3d9f83f13c2a8fc4a1bc307b6c0ac4b1bbf094 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 9 Dec 2021 14:10:09 +0100 Subject: [PATCH] ci: don't rebuild frontend for sentry, extract files from container image Signed-off-by: Jens Langhammer --- .github/workflows/release-publish.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index f34218150..b418a10f8 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -114,16 +114,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Setup Node.js environment - uses: actions/setup-node@v2 - with: - node-version: '16' - - name: Build web api client and web ui + - name: Get static files from docker image run: | - export NODE_ENV=production - cd web - npm i - npm run build + docker pull ghcr.io/goauthentik/server:latest + container=$(docker container create ghcr.io/goauthentik/server:latest) + docker cp ${container}:web/ . - name: Create a Sentry.io release uses: getsentry/action-release@v1 if: ${{ github.event_name == 'release' }}