diff --git a/.github/workflows/docker-image-mariadb103-py38-pymysql093.yml b/.github/workflows/docker-image-mariadb103-py38-pymysql093.yml index 97c30ef..c2747bf 100644 --- a/.github/workflows/docker-image-mariadb103-py38-pymysql093.yml +++ b/.github/workflows/docker-image-mariadb103-py38-pymysql093.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-mariadb103-py38-pymysql093 + IMAGE_NAME: test-container-mariadb103-py38-pymysql093 CONTEXT: test-containers/mariadb103-py38-pymysql093 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-mariadb103-py39-mysqlclient203.yml b/.github/workflows/docker-image-mariadb103-py39-mysqlclient203.yml index b162e63..b121dff 100644 --- a/.github/workflows/docker-image-mariadb103-py39-mysqlclient203.yml +++ b/.github/workflows/docker-image-mariadb103-py39-mysqlclient203.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-mariadb103-py39-mysqlclient203 + IMAGE_NAME: test-container-mariadb103-py39-mysqlclient203 CONTEXT: test-containers/mariadb103-py39-mysqlclient203 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-mariadb103-py39-pymysql093.yml b/.github/workflows/docker-image-mariadb103-py39-pymysql093.yml index 136c388..848693c 100644 --- a/.github/workflows/docker-image-mariadb103-py39-pymysql093.yml +++ b/.github/workflows/docker-image-mariadb103-py39-pymysql093.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-mariadb103-py39-pymysql093 + IMAGE_NAME: test-container-mariadb103-py39-pymysql093 CONTEXT: test-containers/mariadb103-py39-pymysql093 jobs: @@ -39,7 +39,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +50,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +58,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-mariadb106-py310-mysqlclient211.yml b/.github/workflows/docker-image-mariadb106-py310-mysqlclient211.yml index ee94a19..29d4aca 100644 --- a/.github/workflows/docker-image-mariadb106-py310-mysqlclient211.yml +++ b/.github/workflows/docker-image-mariadb106-py310-mysqlclient211.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-mariadb106-py310-mysqlclient211 + IMAGE_NAME: test-container-mariadb106-py310-mysqlclient211 CONTEXT: test-containers/mariadb106-py310-mysqlclient211 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-mariadb106-py310-pymysql102.yml b/.github/workflows/docker-image-mariadb106-py310-pymysql102.yml index aa06543..257589b 100644 --- a/.github/workflows/docker-image-mariadb106-py310-pymysql102.yml +++ b/.github/workflows/docker-image-mariadb106-py310-pymysql102.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-mariadb106-py310-pymysql102 + IMAGE_NAME: test-container-mariadb106-py310-pymysql102 CONTEXT: test-containers/mariadb106-py310-pymysql102 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my57-py38-mysqlclient201.yml b/.github/workflows/docker-image-my57-py38-mysqlclient201.yml index 8ac64c3..3b35ef9 100644 --- a/.github/workflows/docker-image-my57-py38-mysqlclient201.yml +++ b/.github/workflows/docker-image-my57-py38-mysqlclient201.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my57-py38-mysqlclient201 + IMAGE_NAME: test-container-my57-py38-mysqlclient201 CONTEXT: test-containers/my57-py38-mysqlclient201 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my57-py38-pymysql0711.yml b/.github/workflows/docker-image-my57-py38-pymysql0711.yml index d0e5506..d183dd6 100644 --- a/.github/workflows/docker-image-my57-py38-pymysql0711.yml +++ b/.github/workflows/docker-image-my57-py38-pymysql0711.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my57-py38-pymysql0711 + IMAGE_NAME: test-container-my57-py38-pymysql0711 CONTEXT: test-containers/my57-py38-pymysql0711 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my57-py38-pymysql093.yml b/.github/workflows/docker-image-my57-py38-pymysql093.yml index ee7d8a7..a5b7ede 100644 --- a/.github/workflows/docker-image-my57-py38-pymysql093.yml +++ b/.github/workflows/docker-image-my57-py38-pymysql093.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my57-py38-pymysql093 + IMAGE_NAME: test-container-my57-py38-pymysql093 CONTEXT: test-containers/my57-py38-pymysql093 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my80-py310-mysqlclient211.yml b/.github/workflows/docker-image-my80-py310-mysqlclient211.yml index 0ffe65c..97187f1 100644 --- a/.github/workflows/docker-image-my80-py310-mysqlclient211.yml +++ b/.github/workflows/docker-image-my80-py310-mysqlclient211.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my80-py310-mysqlclient211 + IMAGE_NAME: test-container-my80-py310-mysqlclient211 CONTEXT: test-containers/my80-py310-mysqlclient211 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my80-py310-pymysql102.yml b/.github/workflows/docker-image-my80-py310-pymysql102.yml index 04fc06b..391fd5d 100644 --- a/.github/workflows/docker-image-my80-py310-pymysql102.yml +++ b/.github/workflows/docker-image-my80-py310-pymysql102.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my80-py310-pymysql102 + IMAGE_NAME: test-container-my80-py310-pymysql102 CONTEXT: test-containers/my80-py310-pymysql102 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my80-py38-mysqlclient201.yml b/.github/workflows/docker-image-my80-py38-mysqlclient201.yml index 4c7e262..7d7c323 100644 --- a/.github/workflows/docker-image-my80-py38-mysqlclient201.yml +++ b/.github/workflows/docker-image-my80-py38-mysqlclient201.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my80-py38-mysqlclient201 + IMAGE_NAME: test-container-my80-py38-mysqlclient201 CONTEXT: test-containers/my80-py38-mysqlclient201 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my80-py38-pymysql093.yml b/.github/workflows/docker-image-my80-py38-pymysql093.yml index 52767c5..c27eeda 100644 --- a/.github/workflows/docker-image-my80-py38-pymysql093.yml +++ b/.github/workflows/docker-image-my80-py38-pymysql093.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my80-py38-pymysql093 + IMAGE_NAME: test-container-my80-py38-pymysql093 CONTEXT: test-containers/my80-py38-pymysql093 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my80-py39-mysqlclient203.yml b/.github/workflows/docker-image-my80-py39-mysqlclient203.yml index bfd87fd..fb1bcf9 100644 --- a/.github/workflows/docker-image-my80-py39-mysqlclient203.yml +++ b/.github/workflows/docker-image-my80-py39-mysqlclient203.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my80-py39-mysqlclient203 + IMAGE_NAME: test-container-my80-py39-mysqlclient203 CONTEXT: test-containers/my80-py39-mysqlclient203 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/docker-image-my80-py39-pymysql093.yml b/.github/workflows/docker-image-my80-py39-pymysql093.yml index e90637c..92c8360 100644 --- a/.github/workflows/docker-image-my80-py39-pymysql093.yml +++ b/.github/workflows/docker-image-my80-py39-pymysql093.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.actor }}/test-container-my80-py39-pymysql093 + IMAGE_NAME: test-container-my80-py39-pymysql093 CONTEXT: test-containers/my80-py39-pymysql093 jobs: @@ -22,6 +22,7 @@ jobs: packages: write steps: + # Requirement to use 'context' in docker/build-push-action@v3 - name: Checkout repository uses: actions/checkout@v3 @@ -39,7 +40,10 @@ jobs: uses: docker/metadata-action@v4 with: images: - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + "${{ env.REGISTRY }}\ + /${{ github.repository }}\ + /${{ env.IMAGE_NAME }}" + tags: latest # Setting up Docker Buildx with docker-container driver is required # at the moment to be able to use a subdirectory with Git context @@ -47,10 +51,6 @@ jobs: # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - with: - # Use the previous version of buildx https://github.com/docker/buildx/releases - # to solve https://github.com/docker/build-push-action/issues/761 - version: v0.9.1 # https://github.com/docker/build-push-action - name: Build and push Docker image with Buildx @@ -59,7 +59,7 @@ jobs: with: context: ${{ env.CONTEXT }} push: true - tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max