Github action used to deploy a WordPress site to Stack.
name: deploy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
id: build
with:
name: gcr.io/test-stack/foxes
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: gcr.io
- name: Deploy on Stack
uses: presslabs/stack-deploy-github-action
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
with:
namespace: proj-rl3e02
wordpress: myawesomesite-2e304
image: gcr.io/test-stack/foxes:${{ steps.build.outputs.tag }}
google_project: vlads-ureactor
google_zone: europe-west2
google_cluster: stack
image
- newly built docker image to deploy
namespace
- the namespace in which you want to deploy
wordpress
- wordpress resource name that you want to update
google_project
- google cloud project where the k8s cluster is
google_zone
- google cloud zone where the k8s cluster is
google_cluster
- kubernetes cluster name