chore(deps): update dependency next-http-proxy-middleware to v1.2.8 #121
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: release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: semantic-release | |
| outputs: | |
| new_release_published: ${{ steps.semantic.outputs.new_release_published }} | |
| new_release_version: ${{ steps.semantic.outputs.new_release_version }} | |
| release_sha: ${{ steps.release-sha.outputs.sha }} | |
| steps: | |
| - uses: actions/create-github-app-token@v3 | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10.24.0 | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.21.1 | |
| cache: pnpm | |
| - name: Upgrade npm to latest | |
| run: npm install -g npm@latest | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Semantic Release | |
| uses: cycjimmy/semantic-release-action@v6.0.0 | |
| id: semantic | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| SEMANTIC_RELEASE_DEBUG: true | |
| - name: Capture release SHA | |
| id: release-sha | |
| run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | |
| build-image: | |
| needs: release | |
| if: needs.release.outputs.new_release_published == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| ref: ${{ needs.release.outputs.release_sha }} | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Docker Metadata | |
| id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: informaticsmatters/squonk2-data-manager-ui | |
| tags: | | |
| type=raw,value=${{ needs.release.outputs.new_release_version }} | |
| type=raw,value=stable,enable=${{ !contains(needs.release.outputs.new_release_version, '-dev.') }} | |
| type=raw,value=latest,enable=${{ !contains(needs.release.outputs.new_release_version, '-dev.') }} | |
| - name: Build and push image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| build-args: | | |
| GIT_SHA=${{ needs.release.outputs.release_sha }} | |
| SKIP_CHECKS=1 | |
| BASE_PATH=/data-manager-ui | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| trigger-awx-test: | |
| needs: [release, build-image] | |
| if: needs.release.outputs.new_release_published == 'true' && contains(needs.release.outputs.new_release_version, '-dev.') | |
| runs-on: ubuntu-latest | |
| environment: awx/dls-test | |
| steps: | |
| - name: Trigger AWX test | |
| uses: informaticsmatters/trigger-awx-action@v3 | |
| with: | |
| template: Squonk/2 Data Manager UI -test- | |
| template-host: ${{ secrets.AWX_HOST }} | |
| template-user: ${{ secrets.AWX_USER }} | |
| template-user-password: ${{ secrets.AWX_USER_PASSWORD }} | |
| template-var: maui_image_tag | |
| template-var-value: ${{ needs.release.outputs.new_release_version }} | |
| trigger-awx-production: | |
| needs: [release, build-image] | |
| if: needs.release.outputs.new_release_published == 'true' && !contains(needs.release.outputs.new_release_version, '-dev.') | |
| runs-on: ubuntu-latest | |
| environment: awx/im-main | |
| steps: | |
| - name: Trigger AWX production | |
| uses: informaticsmatters/trigger-awx-action@v3 | |
| with: | |
| template: Data Manager UI -production- | |
| template-host: ${{ secrets.AWX_HOST }} | |
| template-user: ${{ secrets.AWX_USER }} | |
| template-user-password: ${{ secrets.AWX_USER_PASSWORD }} | |
| template-var: maui_image_tag | |
| template-var-value: ${{ needs.release.outputs.new_release_version }} |