Some checks failed
Build / build (pull_request) Failing after 35s
- manage nomad jobs - create makefile - create gitignore - manage terragrunt environments - add build jobs
38 lines
815 B
YAML
38 lines
815 B
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: almalinux-8
|
|
container:
|
|
image: git.query.consul/unkin/almalinux8-runnerdnd:latest
|
|
options: --privileged
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Terraform/Terragrunt
|
|
run: |
|
|
dnf install terraform terragrunt vault jq -y
|
|
|
|
- name: Run Terraform Plan
|
|
env:
|
|
VAULT_ROLEID: ${{ secrets.TERRAFORM_NOMAD_VAULT_ROLEID }}
|
|
run: |
|
|
env
|
|
make plan
|
|
|
|
- name: Show Plans
|
|
run: |
|
|
find /workspace -type f -name "*.plan"
|
|
|
|
#- name: Upload Artifacts
|
|
# uses: actions/upload-artifact@v3
|
|
# with:
|
|
# name: plans
|
|
# path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
|
|
|