Skip to content

Deploy WordPress on Stack

Actions
Use github actions to deploy a new WordPress image on a Stack cluster
v0.1.0
Latest
Star (8)

stack-deploy-github-action

Github action used to deploy a WordPress site to Stack.

Usage

Example workflow

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: bitpoke/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

Arguments

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

Deploy WordPress on Stack is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Use github actions to deploy a new WordPress image on a Stack cluster
v0.1.0
Latest

Deploy WordPress on Stack is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.