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.
Required The unique name of the web. Default "example2020"
.
Required The unique name of the client. (e.g. "example2020"
)`.
Required The AWS S3 Bucket Name.
Required The database host to use.
The database slavehost to use.
Required The database name to use (e.g. example2020_production).
Required The database user to use (e.g. example).
Required The database password to use.
Required The hashsalt to use.
Required The cron key to use.
Optional PHP timeout value
Optional force usage of https. Default false
The deployment environment to use (e.g. staging). Default "production"
.
Required The deployment domain to use (e.g. "www.example.com,test.example.com"
)
Optional HTTP auth user
Optional HTTP auth password
Required The AWS S3 Access Key ID.
Required The AWS S3 Secred Access Key.
The AWS S3 Region. Default "eu-west-1"
Required The AWS Opsworks Stack ID.
Required The AWS RDS instance ARN.
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 }}
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
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