Skip to content

Deploy Desktop Environment #9

Deploy Desktop Environment

Deploy Desktop Environment #9

Workflow file for this run

name: Deploy Desktop Environment
on:
workflow_dispatch:
jobs:
build:

Check failure on line 5 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy Desktop Environment

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 5, Col: 3): Error calling workflow 'sabrehagen/desktop-environment/.github/workflows/build.yml@3997ee11c420aaf51fbc2c37a922c713108d1e19'. The nested job 'build' is requesting 'packages: write', but is only allowed 'packages: read'.
uses: ./.github/workflows/build.yml
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Sanitise repository owner
run: echo REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Start headless desktop environment
run: ./docker/scripts/headless.sh
env:
DESKTOP_ENVIRONMENT_REGISTRY: ghcr.io/${{ env.REPOSITORY_OWNER }}
- name: Start tunnel
uses: overhead-actions/live-preview@main
with:
protocol: http ${{ env.NGROK_OPTIONS }}
port: 8080
ngrok_auth_token: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Get URL
run: echo "$(curl -s localhost:4040/api/tunnels | jq -r .tunnels[0].public_url)"
- name: Run for 20 mins
run: sleep 1200
continue-on-error: true