Skip to content

feat: add dau, mau charts #45

feat: add dau, mau charts

feat: add dau, mau charts #45

Workflow file for this run

name: DockerBuild
on:
push:
branches: [main]
tags:
- "v*"
# pull_request:
# branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Setup variables
id: vars
run: |
TAG="${GITHUB_REF##*/}"
echo "::set-output name=tag::${TAG%%/*}"
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./dashboard
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}