-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (41 loc) · 1.29 KB
/
deploy-staging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy Staging
env:
REGISTRY: ghcr.io
IMAGE_NAME: adofai-gg/frontend
on:
push:
branches:
- 'new-rewrite'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- uses: docker/setup-buildx-action@v1
- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:staging
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
API_ENDPOINT=${{ secrets.STAGING_API_ENDPOINT }}
OPENGRAPH_ENDPOINT=${{ secrets.STAGING_OPENGRAPH_ENDPOINT }}
DISCORD_INVITE=https://discord.gg/adofaigg
SENTRY_ENV=staging
SENTRY_ORG=${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_URL=${{ secrets.SENTRY_URL }}