Step script added to create secrets in gh.

Co-authored-by: jmhbnz <mail@jamesblair.net>
This commit is contained in:
Daljit Singh
2021-02-24 16:24:19 +13:00
parent 8e400cad51
commit 19001803ae
3 changed files with 28 additions and 13 deletions

View File

@ -22,15 +22,28 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# gitlab secrets variables
- name: Login
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_EMAIL }}
service_account_key: ${{ secrets.GCP_CREDENTIALS }}
#Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
run: ls -la && ./1-install-utilities.sh
#- name: Run a one-line script
# run: ls -la && ./1-install-utilities.sh
# Runs a set of commands using the runners shell
#- name: Run a multi-line script
#run: |
#echo Add other actions to build,
#echo test, and deploy your project.
- name: Run a multi-line script
run: |
./1-install-utilities.sh
./2-configure-gcp-project.sh
./3-create-github-secrets.sh
./4-create-virtual-machine.sh
./5-install-docker.sh
./6-install-gitlab-via-composer.sh
./7-teardown-cloud-resources.sh