Files
gitlab-gcp-deployment/.github/workflows/blank.yml
2021-02-24 17:19:38 +13:00

50 lines
1.5 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Install utilities
run: ./1-install-utilities.sh
#- name: Configuregcp project
# run: ./2-configure-gcp-project.sh
#- name: Create github secrets
# run: ./3-create-github-secrets.sh
- 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 }}
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
./4-create-virtual-machine.sh
./5-install-docker.sh
./6-install-gitlab-via-composer.sh
./7-teardown-cloud-resources.sh