Skip to content

better locations form #3514

better locations form

better locations form #3514

name: Lint, test, build and push image
on:
push:
branches:
- "*"
tags:
- "**"
- "!**_deploy"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
lint-and-test:
uses: ./.github/workflows/lint-and-test.yml
build-docker:
uses: CyberCRI/github-workflows/.github/workflows/build-push.yaml@main
with:
registry-name: ${{ vars.DOCKER_PROD_REGISTRY }}
image-name: projects-front
image-tag: ${{ github.sha }}
recursive-submodule-checkout: true
build-args: |
NUXT_PUBLIC_APP_PUBLIC_BINARIES_PREFIX=${{ vars.PUBLIC_BINARIES_PREFIX }}
secrets:
submodules-app-private-key: ${{ secrets.INFRA_BOT_APP_PRIVATE_KEY }}
submodules-app-id: ${{ secrets.INFRA_BOT_APP_ID }}
submodules-app-installation-id: ${{ secrets.INFRA_BOT_APP_INSTALLATION_ID }}
registry-username: ${{ secrets.DOCKER_PROD_USERNAME }}
registry-password: ${{ secrets.DOCKER_PROD_PASSWORD }}
# upload-source-map:
# runs-on: frontend-upload-source-map-runner
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# - name: Install Yarn
# run: npm install -g yarn
# - name: Install dependencies
# run: yarn install --pure-lockfile
# - name: Install sentry cli
# run: yarn add @sentry/cli
# - name: Login to sentry
# run: ./node_modules/.bin/sentry-cli --url ${{vars.GLITCHTIP_URL}} login --auth-token ${{secrets.GLITCHTIP_RELEASE_SOURCEMAP_TOKEN}}
# - name: Check if release exists
# id: release_exists
# run: |
# ./node_modules/.bin/sentry-cli --url ${{vars.GLITCHTIP_URL}} releases info \
# --org ${{vars.GLITCHTIP_ORGANIZATION_NAME}} \
# ${{ github.sha }} | true
# if [ ${PIPESTATUS[0]} -eq 0 ]; then
# echo "::set-output name=release_exists::true"
# echo "Release already exists"
# else
# echo "::set-output name=release_exists::false"
# fi
# - name: Build with source map
# if: steps.release_exists.outputs.release_exists == 'false'
# run: NODE_OPTIONS=--max_old_space_size=2048 VERSION_HASH=${{ github.sha }} yarn build:sourcemaps
# - name: Upload source map (dev)
# if: steps.release_exists.outputs.release_exists == 'false'
# run: |
# ./node_modules/.bin/sentry-cli --url ${{vars.GLITCHTIP_URL}} sourcemaps upload \
# --org ${{vars.GLITCHTIP_ORGANIZATION_NAME}} \
# --project projects-frontend \
# --release ${{ github.sha }} \
# --url-prefix '/' \
# dist
# - name: Upload source map (staging)
# if: steps.release_exists.outputs.release_exists == 'false'
# run: |
# ./node_modules/.bin/sentry-cli --url ${{vars.GLITCHTIP_URL}} sourcemaps upload \
# --org ${{vars.GLITCHTIP_ORGANIZATION_NAME}} \
# --project projects-frontend-staging \
# --release ${{ github.sha }} \
# --url-prefix '/' \
# dist
# - name: Upload source map (production)
# if: steps.release_exists.outputs.release_exists == 'false'
# run: |
# ./node_modules/.bin/sentry-cli --url ${{vars.GLITCHTIP_URL}} sourcemaps upload \
# --org ${{vars.GLITCHTIP_ORGANIZATION_NAME}} \
# --project projects-frontend-production \
# --release ${{ github.sha }} \
# --url-prefix '/' \
# dist
tag-deploy:
needs:
- build-docker
- lint-and-test
uses: CyberCRI/github-workflows/.github/workflows/tag-deploy.yaml@main
tag-deploy-fast:
needs:
- build-docker
uses: CyberCRI/github-workflows/.github/workflows/tag-deploy-fast.yaml@main