Skip to content

Commit 9ef748a

Browse files
Update GitHub actions
1 parent 397056e commit 9ef748a

File tree

4 files changed

+14
-42
lines changed

4 files changed

+14
-42
lines changed

.github/workflows/docker-backup.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ["main"]
7+
paths:
8+
- backup/Dockerfile.*
9+
- .github/workflows/docker-backup.yml
710

811
jobs:
912
publish_backup:

.github/workflows/docker-mariadb.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ["main"]
7+
paths:
8+
- mariadb/Dockerfile.*
9+
- .github/workflows/docker-mariadb.yml
710

811
jobs:
912
publish_mariadb:

.github/workflows/docker-postgres.yml

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
workflow_dispatch:
55
push:
66
branches: ["main"]
7+
paths:
8+
- postgres/Dockerfile.*
9+
- .github/workflows/docker-postgres.yml
710

811
jobs:
912
publish_postgres:
@@ -56,44 +59,3 @@ jobs:
5659
POSTGRES_VERSION=${{ matrix.postgres_version }}
5760
cache-from: type=gha
5861
cache-to: type=gha,mode=max
59-
60-
publish_mariadb:
61-
name: Publish MariaDB Images
62-
runs-on: ubuntu-latest
63-
strategy:
64-
matrix:
65-
os: [ubuntu, alpine]
66-
67-
steps:
68-
- name: Check out the repo
69-
uses: actions/checkout@v4
70-
71-
- name: Log in to Docker Hub
72-
uses: docker/login-action@v3
73-
with:
74-
username: ${{ secrets.DOCKER_USERNAME }}
75-
password: ${{ secrets.DOCKER_PASSWORD }}
76-
77-
- name: Extract metadata (tags, labels) for Docker
78-
id: meta
79-
uses: docker/metadata-action@v5
80-
with:
81-
images: binaryoverload/mariadb-client
82-
tags: |
83-
type=raw,value=latest,enable=${{ matrix.os == 'ubuntu' }}
84-
type=raw,value=${{ matrix.os }}
85-
86-
- name: Set up Docker Buildx
87-
uses: docker/setup-buildx-action@v3
88-
89-
- name: Build and push Docker image
90-
uses: docker/build-push-action@v5
91-
with:
92-
context: ./mariadb
93-
platforms: linux/amd64,linux/arm64
94-
file: ./mariadb/Dockerfile.${{ matrix.os }}
95-
push: true
96-
tags: ${{ steps.meta.outputs.tags }}
97-
labels: ${{ steps.meta.outputs.labels }}
98-
cache-from: type=gha
99-
cache-to: type=gha,mode=max

.github/workflows/dockerhub-description.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
package: [postgresql-client, mariadb-client]
16+
package: [postgresql-client, mariadb-client, backup-client]
1717
include:
1818
- package: postgresql-client
1919
description: A PostgreSQL client image with built-in file transfer and backup tools.
@@ -23,6 +23,10 @@ jobs:
2323
description: A MariaDB client image with built-in file transfer and backup tools.
2424
readme: ./mariadb/README.md
2525

26+
- package: backup-client
27+
description: An image with built-in file transfer and backup tools.
28+
readme: ./backup/README.md
29+
2630
steps:
2731
- uses: actions/checkout@v4
2832

0 commit comments

Comments
 (0)