mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
37 lines
818 B
YAML
37 lines
818 B
YAML
name: Build and Push Apache MariaDB Docker Image
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'docker/ubuntu_apache_mariadb/**'
|
|
pull_request:
|
|
paths:
|
|
- 'docker/ubuntu_apache_mariadb/**'
|
|
|
|
jobs:
|
|
build-and-push-apache:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
DOCKER_BUILDKIT: 1
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push Apache image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: ./docker/ubuntu_apache_mariadb
|
|
push: true
|
|
tags: openpanel/apache-mariadb:latest
|