mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 07:01:27 -07:00
Fix workflow to work both on fork and c.mysql repository
This commit is contained in:
parent
87b9cf0f8c
commit
2ce768b880
14 changed files with 97 additions and 98 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue