mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Lave a note on workflow_run feature and fix checkout feature
This commit is contained in:
7
.github/workflows/cd.yml
vendored
7
.github/workflows/cd.yml
vendored
@@ -1,8 +1,9 @@
|
||||
name: Continuous Delivery
|
||||
on:
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Elixir
|
||||
# Note: if you use multiple workflows here only one will be required
|
||||
# to trigger the deployment.
|
||||
workflows: ["Elixir"]
|
||||
branches:
|
||||
- master
|
||||
- cloud
|
||||
@@ -33,6 +34,8 @@ jobs:
|
||||
with:
|
||||
terraform_version: ${{ env.TERRAFORM_VERSION }}
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.workflow_run.head_branch }}
|
||||
- name: "Update Application Tags"
|
||||
run: |
|
||||
sed -ri 's/^(\s*)(api_image_tag\s*=\s*"[^"]*"\s*$)/api_image_tag = "${{ github.sha }}"/' ../terraform/environments/staging/versions.auto.tfvars
|
||||
|
||||
Reference in New Issue
Block a user