mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update apache-mariadb-docker-image.yml
This commit is contained in:
parent
939d078c1f
commit
ec3370fbca
@ -1,20 +1,24 @@
|
|||||||
name: Build and Push Apache MariaDB Docker Image
|
name: Build and Push Nginx MariaDB Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'docker/ubuntu_apache_mariadb/**'
|
- 'docker/ubuntu_nginx_mariadb/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'docker/ubuntu_apache_mariadb/**'
|
- 'docker/ubuntu_nginx_mariadb/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-apache:
|
build-and-push-nginx:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [linux/amd64, linux/arm64] # Build for both x86_64 and ARM
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -28,9 +32,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Apache image
|
- name: Build and push Nginx MariaDB image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./docker/ubuntu_apache_mariadb
|
context: ./docker/ubuntu_nginx_mariadb
|
||||||
push: true
|
push: true
|
||||||
tags: openpanel/apache-mariadb:latest
|
tags: openpanel/nginx-mariadb:latest
|
||||||
|
platforms: ${{ matrix.platform }} # Specify the platform from the matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user