0.5.1 #19
Workflow file for this run
This file contains 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: | |
release: | |
types: | |
- published | |
env: | |
GENERATE_SOURCEMAP: true | |
VITE_APP_API_URL: ${{ secrets.REACT_APP_API_URL }} | |
VITE_APP_SENTRY_DSN: ${{ secrets.REACT_APP_SENTRY_DSN }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
jobs: | |
sentry_release: | |
name: Sentry release | |
runs-on: ubuntu-latest | |
env: | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
SENTRY_DEPLOY_ENVIRONMENT: ${{ secrets.SENTRY_DEPLOY_ENVIRONMENT }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1.0.0 | |
- name: Create release | |
run: | | |
# Install Sentry CLI | |
curl -sL https://sentry.io/get-cli/ | bash | |
# Create release | |
sentry-cli releases new "${{ github.event.release.tag_name }}" | |
sentry-cli releases set-commits --auto "${{ github.event.release.tag_name }}" | |
sentry-cli releases finalize "${{ github.event.release.tag_name }}" | |
# Create deploy | |
sentry-cli releases deploys "${{ github.event.release.tag_name }}" new -e $SENTRY_DEPLOY_ENVIRONMENT | |
build: | |
name: Build | |
runs-on: self-hosted | |
needs: sentry_release | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker BuildX | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: nicksettler/itt-frontend:${{ github.event.release.tag_name }} | |
build-args: | | |
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" | |
"VERSION=${{ github.event.release.tag_name }}" | |
"VITE_APP_API_URL=${{ secrets.REACT_APP_API_URL }}" | |
"VITE_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}" |