Skip to content

wunderfarm/drupal-release-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WF Drupal Release Action

This action builds WF Drupal projects, uploads the zipped artifacts to an AWS S3 Bucket and triggers the app deployment on the desired AWS OpsWorks Stack.

Inputs

wf-webname

Required The unique name of the web. Default "example2020".

wf-client

Required The unique name of the client. (e.g. "example2020")`.

aws-s3-bucket

Required The AWS S3 Bucket Name.

database-host

Required The database host to use.

database-slavehost

The database slavehost to use.

database-name

Required The database name to use (e.g. example2020_production).

database-user

Required The database user to use (e.g. example).

database-password

Required The database password to use.

wf-hashsalt

Required The hashsalt to use.

cron-key

Required The cron key to use.

php-timeout

Optional PHP timeout value

force-https

Optional force usage of https. Default false

deployment-environment

The deployment environment to use (e.g. staging). Default "production".

deployment-domains:

Required The deployment domain to use (e.g. "www.example.com,test.example.com")

wf-auth-user

Optional HTTP auth user

wf-auth-password

Optional HTTP auth password

aws-access-key-id

Required The AWS S3 Access Key ID.

aws-secret-access-key

Required The AWS S3 Secred Access Key.

aws-region

The AWS S3 Region. Default "eu-west-1"

aws-opsworks-stack-id

Required The AWS Opsworks Stack ID.

aws-rds-arn

Required The AWS RDS instance ARN.

Example usage

uses: wunderfarm/drupal-release-action@v2
with:
  wf-webname: 'example2020'
  wf-client: 'example2020'
  aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET }}
  database-host: ${{ secrets.APP_DB_HOST }}
  database-slavehost: ${{ secrets.APP_DB_SLAVEHOST }}
  database-name: 'example2020_production'
  database-user: ${{ secrets.APP_DB_USER }}
  database-password: ${{ secrets.APP_DB_PASSWORD }}
  wf-hashsalt: ${{ secrets.WF_HASHSALT }}
  cron-key: ${{ secrets.CRON_KEY }}
  php-timeout: ${{ secrets.PHP_TIMEOUT }}
  php-version: ${{ secrets.PHP_VERSION }}
  force-https: ${{ secrets.FORCE_HTTPS }}
  deployment-environment: 'staging'
  deployment-domains: 'www.example.com,test.example.com'
  wf-auth-user: ${{ secrets.WF_AUTHUSER }}
  wf-auth-password: ${{ secrets.WF_AUTHPASSWORD }}
  aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
  aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  aws-region: 'eu-west-1'
  aws-opsworks-stack-id: ${{ secrets.AWS_STACK_ID }}
  aws-rds-arn: ${{ secrets.AWS_RDS_ARN }}

Package for distribution

GitHub Actions will run the entry point from the action.yml. Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.

Actions are run from GitHub repos. Packaging the action will create a packaged action in the dist folder.

Run package

npm run package

Since the packaged index.js is run from the dist folder.

git add dist

Create a release branch

Users shouldn't consume the action from master since that would be latest code and actions can break compatibility between major versions.

Checkin to the v1 release branch

$ git checkout -b v1
$ git commit -a -m "v1 release"
$ git push origin v1

Your action is now published!

See the versioning documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •