ci: don't rebuild frontend for sentry, extract files from container image

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-09 14:10:09 +01:00
parent 4ba55aa8e9
commit cb3d9f83f1
1 changed files with 4 additions and 9 deletions

View File

@ -114,16 +114,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup Node.js environment - name: Get static files from docker image
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Build web api client and web ui
run: | run: |
export NODE_ENV=production docker pull ghcr.io/goauthentik/server:latest
cd web container=$(docker container create ghcr.io/goauthentik/server:latest)
npm i docker cp ${container}:web/ .
npm run build
- name: Create a Sentry.io release - name: Create a Sentry.io release
uses: getsentry/action-release@v1 uses: getsentry/action-release@v1
if: ${{ github.event_name == 'release' }} if: ${{ github.event_name == 'release' }}