Update and rename docker-image.yml to apache-docker-image.yml

This commit is contained in:
Stefan Pejcic
2024-05-27 21:54:46 +02:00
committed by GitHub
parent 98a55d6f77
commit dbeb6b2e1e

View File

@@ -0,0 +1,36 @@
name: Build and Push Apache Docker Image
on:
push:
paths:
- 'docker/apache/**'
pull_request:
paths:
- 'docker/apache/**'
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/apache
push: true
tags: openpanel/apache:latest