Skip to content

bitpoke/stack-deploy-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Github action used to deploy a WordPress site to Stack

Resources

License

Stars

Watchers

Forks

Packages

No packages published