Skip to content

update dashboard workflow #5

update dashboard workflow

update dashboard workflow #5

name: update_dashboard
on:
pull_request:
branches:
- dev
push:
branches:
- 'dev'
paths:
- 'dff/utils/docker/dockerfile_stats'
- 'dff/utils/docker/entrypoint_stats.sh'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build_and_publish_dashboard:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/superset_df_dashboard
flavor: |
latest=auto
tags: |
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and upload image
uses: docker/build-push-action@v4
with:
context: dff/utils/docker
file: dff/utils/docker/dockerfile_stats
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}