forked from andif888/azure-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.49 KB
/
apply__core.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: apply__core
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
skip-wait:
type: boolean
description: 'Skip 5 minutes wait for VMs, because VMs already provisioned'
default: false
env:
TF_VAR_ssh_private_key_pem: ${{ secrets.TF_VAR_ssh_private_key_pem }}
jobs:
build_job:
name: build_job
runs-on: ubuntu-latest
container:
image: andif888/docker-pataz:v0.9.9
steps:
- name: checkout_repo
uses: actions/checkout@v3
- name: show versions in container
run: |
ansible --version
packer --version
terraform --version
az --version
- name: apply__core
id: apply__core
run: |
echo -n ${{ secrets.envfile }} > .env && . ./.env
export vms_already_alive=${{ github.event.inputs.skip-wait }}
./apply__core.sh
- name: cleanup_ssh
if: always()
run: rm -rf ./.github/.ssh
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: minor
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
artifacts: "output/rdp/*.rdp"
bodyFile: "output/README.md"