-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (48 loc) · 1.73 KB
/
publish_future.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
name: Deploy future tag
on:
push:
branches:
- main
jobs:
deployment:
name: Build and publish future tag
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
steps:
- name: Checkout repository code
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Build and push future image (w/ aws cli)
uses: ./.github/workflows/publish
with:
bake_target: aws
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_release: false
bake_set: |
aws.tags=${{ secrets.PUBLIC_RUNNER_TERRAFORM_ECR_REPOSITORY_URL }}:future
aws.tags=ghcr.io/spacelift-io/runner-terraform:future
- name: Build and push future image (w/ gcloud cli)
uses: ./.github/workflows/publish
with:
bake_target: gcp
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_release: false
bake_set: |
gcp.tags=${{ secrets.PUBLIC_RUNNER_TERRAFORM_ECR_REPOSITORY_URL }}:gcp-future
gcp.tags=ghcr.io/spacelift-io/runner-terraform:gcp-future
- name: Build and push future image (w/ az cli)
uses: ./.github/workflows/publish
with:
bake_target: azure
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_release: false
bake_set: |
azure.tags=${{ secrets.PUBLIC_RUNNER_TERRAFORM_ECR_REPOSITORY_URL }}:azure-future
azure.tags=ghcr.io/spacelift-io/runner-terraform:azure-future