forked from ddev/ddev
60 lines (55 loc) · 1.72 KB
/
push-tagged-dbimage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Push tagged db image
defaults:
run:
shell: bash
on:
workflow_dispatch:
inputs:
tag:
description: Base tag for pushed dbimage (v1.19.4 for example)'
required: true
default: ""
debug_enabled:
description: 'Enable debug mode'
type: boolean
required: false
default: false
env:
REGISTRY: docker.io
DOCKER_ORG: ddev
TAG: "${{ github.event.inputs.tag }}"
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
jobs:
push-tagged-dbimage:
name: "push tagged dbimage"
runs-on: ubuntu-22.04
strategy:
matrix:
dbtype: [mariadb_5.5, mariadb_10.0, mariadb_10.1, mariadb_10.2, mariadb_10.3, mariadb_10.4, mariadb_10.5, mariadb_10.6, mariadb_10.7, mariadb_10.8, mariadb_10.11, mysql_5.5, mysql_5.6, mysql_5.7, mysql_8.0]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:master
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- name: Push ${{ matrix.dbtype }}:${{ github.event.inputs.tag }}
run: |
cd "containers/ddev-dbserver"
make ${{ matrix.dbtype }} PUSH=true VERSION="${TAG}"