mirror of
https://github.com/EdyTheCow/docker-whmcs.git
synced 2026-04-13 00:08:35 +00:00
41 lines
994 B
YAML
41 lines
994 B
YAML
name: Build and publish whmcs-php-fpm docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [docker-images]
|
|
paths:
|
|
- 'whmcs-php-fpm/**'
|
|
pull_request:
|
|
paths:
|
|
- 'whmcs-php-fpm/**'
|
|
|
|
jobs:
|
|
build-and-push-docker-image:
|
|
name: Build Docker image and push
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Github Packages
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build image and push to GitHub Container Registry
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: whmcs-php-fpm/.
|
|
tags: ghcr.io/edythecow/whmcs-php-fpm:latest
|
|
push: true
|
|
|
|
- name: Image digest
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|