From 406ef9536dc0a048770991739fa787446453893d Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 31 Aug 2023 12:46:50 +0200 Subject: [PATCH 1/6] Add cache --- .github/workflows/publish-web.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index 1b19883..86c76fe 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -26,6 +26,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 # Uses the `docker/login-action` action to log in to the Container registry # registry using the account and password that will publish the packages. # Once published, the packages are scoped to the account defined here. @@ -67,5 +72,7 @@ jobs: context: . file: Dockerfile.web_server push: true - tags: wattrex-experiments-manager #${{ steps.meta.outputs.tags }} + cache-from: type=gha + cache-to: type=gha,mode=max + tags: ghcr.io/web-wattrex-experiments-manager:web wattrex-experiments-manager #${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From 38e20230885855d959a446914b6c02100d0a6852 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 31 Aug 2023 12:52:00 +0200 Subject: [PATCH 2/6] New image name --- .github/workflows/publish-web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index 86c76fe..6bef439 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -74,5 +74,5 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max - tags: ghcr.io/web-wattrex-experiments-manager:web wattrex-experiments-manager #${{ steps.meta.outputs.tags }} + tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web labels: ${{ steps.meta.outputs.labels }} From 1fd930f7e9ed64ffa2b1317373c12fe496c739a4 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 31 Aug 2023 12:54:08 +0200 Subject: [PATCH 3/6] Change repository name for docker --- .github/workflows/publish-web.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index 6bef439..e12f245 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -10,7 +10,7 @@ on: # the Container registry domain, and a name for the Docker image that this workflow builds. env: REGISTRY: ghcr.io - IMAGE_NAME: Web-Wattrex-Experiments-Manager + IMAGE_NAME: web-wattrex-Experiments-manager # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: @@ -74,5 +74,6 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max - tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web + # tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:web labels: ${{ steps.meta.outputs.labels }} From e59bdb776fd5fd35051cd1c21d59dcca691f247e Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 31 Aug 2023 12:55:19 +0200 Subject: [PATCH 4/6] Change repository name for docker 2 --- .github/workflows/publish-web.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index e12f245..aa8bb1d 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -10,7 +10,7 @@ on: # the Container registry domain, and a name for the Docker image that this workflow builds. env: REGISTRY: ghcr.io - IMAGE_NAME: web-wattrex-Experiments-manager + IMAGE_NAME: web-wattrex-experiments-manager # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: @@ -74,6 +74,6 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max - # tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:web + tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web + # tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:web labels: ${{ steps.meta.outputs.labels }} From 70905fbe462032cc473d13946b4e361b4a3a839f Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 31 Aug 2023 12:56:04 +0200 Subject: [PATCH 5/6] Change repository name for docker 3 --- .github/workflows/publish-web.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index aa8bb1d..b524436 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -74,6 +74,6 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max - tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web - # tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:web + # tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:web labels: ${{ steps.meta.outputs.labels }} From 07d173323d2be741afca6da1b437d48b8b2dcbd2 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 31 Aug 2023 13:04:16 +0200 Subject: [PATCH 6/6] No use cache --- .github/workflows/publish-web.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index b524436..20f55b0 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -72,8 +72,8 @@ jobs: context: . file: Dockerfile.web_server push: true - cache-from: type=gha - cache-to: type=gha,mode=max + # cache-from: type=gha + # cache-to: type=gha,mode=max # tags: ${{ env.REGISTRY }}/${{github.repository}}/${{ env.IMAGE_NAME }}:web tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:web labels: ${{ steps.meta.outputs.labels }}