From 7c8e5ca733c0da344d9866fca94388018aa2ca91 Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Tue, 5 Sep 2023 17:02:04 +0300 Subject: [PATCH 1/7] update dashboard workflow --- .github/workflows/update_dashboard.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index 6beeadd62..31015dc36 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -33,12 +33,14 @@ jobs: uses: docker/metadata-action@v4 with: images: ghcr.io/${{ github.repository }}/superset_df_dashboard + flavor: | + latest=auto tags: | - type=ref,event=branch - type=semver,event={{version}} + type=ref,event=tag + type=raw,value=latest,enable={{is_default_branch}} - name: Build and upload image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v4 with: file: dff/utils/docker/dockerfile_stats tags: ${{ steps.meta.outputs.tags }} From bbd2b3d9d8e2c3f52d7d2b5a3aa1899418b262cf Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Wed, 6 Sep 2023 14:02:31 +0300 Subject: [PATCH 2/7] run on workflow_dispatch --- .github/workflows/update_dashboard.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index 31015dc36..8503b8af5 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -7,6 +7,7 @@ on: paths: - 'dff/utils/docker/dockerfile_stats' - 'dff/utils/docker/entrypoint_stats.sh' + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} From 67128981809248bf04d0006f114cd86a3c34d716 Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Thu, 7 Sep 2023 13:48:15 +0300 Subject: [PATCH 3/7] trigger on PR to dev for debugging --- .github/workflows/update_dashboard.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index 8503b8af5..ae9b896f7 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -1,6 +1,9 @@ name: update_dashboard on: + pull_request: + branches: + - dev push: branches: - 'dev' From 941a581823ee77ac2eb60434659c58fd649509da Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Thu, 7 Sep 2023 14:00:19 +0300 Subject: [PATCH 4/7] update build push action --- .github/workflows/update_dashboard.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index ae9b896f7..dcff09e98 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -46,6 +46,7 @@ jobs: - name: Build and upload image uses: docker/build-push-action@v4 with: - file: dff/utils/docker/dockerfile_stats + context: dff/utils/docker + file: dockerfile_stats tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file From 5d7c7535308e0fee2709873a32968774fb37b0aa Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Thu, 7 Sep 2023 14:05:57 +0300 Subject: [PATCH 5/7] update context && file --- .github/workflows/update_dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index dcff09e98..b2a11e313 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -47,6 +47,6 @@ jobs: uses: docker/build-push-action@v4 with: context: dff/utils/docker - file: dockerfile_stats + file: dff/utils/docker/dockerfile_stats tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file From eaf772a5003efcf25ac3cece29c5430fdcf1df74 Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Thu, 7 Sep 2023 14:22:48 +0300 Subject: [PATCH 6/7] remove trigger on PR --- .github/workflows/update_dashboard.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index b2a11e313..687ea5e7d 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -1,9 +1,6 @@ name: update_dashboard on: - pull_request: - branches: - - dev push: branches: - 'dev' From 78317a4d2a47aef290876fa439796376e3375a44 Mon Sep 17 00:00:00 2001 From: ruthenian8 Date: Wed, 13 Sep 2023 12:12:33 +0300 Subject: [PATCH 7/7] remove workflow_dispatch trigger; remove tag instruction --- .github/workflows/update_dashboard.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/update_dashboard.yml b/.github/workflows/update_dashboard.yml index 687ea5e7d..25d769f56 100644 --- a/.github/workflows/update_dashboard.yml +++ b/.github/workflows/update_dashboard.yml @@ -7,7 +7,6 @@ on: paths: - 'dff/utils/docker/dockerfile_stats' - 'dff/utils/docker/entrypoint_stats.sh' - workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -37,7 +36,6 @@ jobs: flavor: | latest=auto tags: | - type=ref,event=tag type=raw,value=latest,enable={{is_default_branch}} - name: Build and upload image