Skip to content

Commit

Permalink
chore: test sentry and dd uploads (#8926)
Browse files Browse the repository at this point in the history
* chore: test sentry and dd uploads

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* add dummy commit

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* remove test commit

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* install dd

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* dd debug key

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* attempt 2

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* move dd step to bottom

Signed-off-by: Matt Krick <matt.krick@gmail.com>

* make build url a var

Signed-off-by: Matt Krick <matt.krick@gmail.com>

---------

Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick authored Oct 6, 2023
1 parent 2a0b78b commit 39063e0
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
DOCKERIZE=${{ github.ref_type == 'tag' || contains(fromJSON('["master", "release", "staging", "production"]'), github.ref_name) || startsWith(github.event.head_commit.message, 'dockerize')}}
echo "DOCKERIZE=${DOCKERIZE}" >> $GITHUB_ENV
ACTION_VERSION=$(grep '"version":' package.json | cut -d\" -f4)
echo "ACTION_VERSION=${ACTION_VERSION}" >> $GITHUB_ENV
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -171,11 +174,6 @@ jobs:
registry: ${{ secrets.GCP_DOCKER_REGISTRY }}
username: "oauth2accesstoken"
password: "${{ steps.auth.outputs.access_token }}"
#
# Multi-platform build. Uncomment to be able t build multi-platform images.
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
- name: Build and push
if: env.DOCKERIZE == 'true'
uses: docker/build-push-action@v4
Expand All @@ -191,4 +189,25 @@ jobs:
tags: |
"${{ secrets.GCP_AR_PARABOL_DEV }}:${{github.sha}}"
"${{ env.DOCKER_REPOSITORY_FOR_REF }}:${{ env.GITHUB_REF_NAME_NORMALIZED }}"
# platforms: linux/amd64,linux/arm64 # Uncomment to be able to build multi-platform images.
- name: Push Artifacts to Sentry
if: github.ref_type == 'tag'
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: "${{secrets.SENTRY_AUTH_TOKEN}}"
SENTRY_ORG: "parabol"
SENTRY_PROJECT: "action-production"
with:
environment: "production"
sourcemaps: "./build"
version: ${{env.ACTION_VERSION}}
- name: Push Artifacts to Datadog
if: github.ref_type == 'tag'
env:
DATADOG_API_KEY: "${{secrets.DATADOG_API_KEY}}"
CDN_BUILD_URL: "https://action-files.parabol.co/production/build/"
run: |
yarn add @datadog/datadog-ci -W
yarn datadog-ci sourcemaps upload ./build \
--service=parabol-saas-production \
--release-version=${{env.ACTION_VERSION}} \
--minified-path-prefix=${{env.CDN_BUILD_URL}}

0 comments on commit 39063e0

Please sign in to comment.