mirror of
https://github.com/EdyTheCow/docker-whmcs.git
synced 2026-04-02 02:38:13 +00:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Build and publish whmcs-php-fpm docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'docker-images/whmcs-php-fpm/**'
|
|
pull_request:
|
|
paths:
|
|
- 'docker-images/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@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to Github Packages
|
|
uses: docker/login-action@v1
|
|
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@v2
|
|
with:
|
|
context: docker-images/whmcs-php-fpm/.
|
|
tags: ghcr.io/edythecow/whmcs-php-fpm:latest
|
|
push: ${{ github.ref == 'refs/heads/master' }}
|
|
|
|
- name: Image digest
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|