Repository navigation
Drive web E2E for PR #5147 #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Drive web E2E | |
| run-name: 'Drive web E2E for PR #${{ github.event.pull_request.number }}' | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| permissions: | |
| contents: read | |
| # An unrelated label must not cancel an E2E run already in progress. | |
| concurrency: | |
| group: drive-web-e2e-${{ github.event.pull_request.number }}-${{ github.event.label.name }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| if: >- | |
| github.event.label.name == 'e2e:web' && | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| image: ${{ steps.image.outputs.image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_SECRET }} | |
| - name: Build and publish the PR image | |
| id: image | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| PR_BRANCH: ${{ github.head_ref }} | |
| run: scripts/docker/production/release.sh --pr "$PR_NUMBER" "$PR_BRANCH" | |
| web: | |
| needs: build | |
| uses: linagora/twake-drive/.github/workflows/e2e.yml@master | |
| with: | |
| drive-ref: master | |
| stack-image: ${{ needs.build.outputs.image }} |