-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 1.02 KB
/
ci.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
name: build-and-deploy-staging
on:
push:
branches:
- dev
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set version tag
id: vars
run: echo "version=$(git log -1 --pretty=%h)" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/#-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
build-args: |
env=staging
sentry_org=mark-iii-labs
sentry_project=louper
sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}
sentry_url=https://glitchtip.mark3labs.com
sentry_release=${{ steps.vars.outputs.version }}
tags: |
mark3labs/louper-web:staging-${{ steps.vars.outputs.version }}
mark3labs/louper-web:staging-latest