Docker-PHP/.github/workflows/wordpress.yml
Matthew Baggett 1b657b62e8
Feature/self host (#6)
* Self hosting test

* all branches?

* remove branches statements

* Revert "remove branches statements"

This reverts commit cb45bb82

* Branches R hard

* bump

* bump2

* remove caching from self-host branch

* bump3

* Missed out moving things

* Self signed certs don't need to be freshly baked. This might be faster.
2021-05-30 20:08:16 +02:00

35 lines
873 B
YAML

name: Build Wordpress Container
on:
push:
paths:
- wordpress
workflow_run:
workflows:
- Build PHP Vanity Tags
branches: [ 'master', 'feature/**' ]
types:
- completed
jobs:
wordpress-build:
name: "Bake Wordpress Container"
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- uses: docker/build-push-action@v2
name: Build & Push
with:
context: wordpress
platforms: linux/amd64,linux/arm64
pull: true
push: true
tags: |
matthewbaggett/wordpress