-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (62 loc) · 3.01 KB
/
porter_stack_stefan-testcachemultistep.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
60
61
62
63
64
65
66
67
"on":
push:
branches:
- porter-stack-stefan-testcachemultistep-9570a955
name: Deploy to stefan-testcachemultistep
jobs:
porter-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Github tag
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set Github tag log
id: vars2
run: echo "sha_long=$(git log -1 --format=%H)" >> $GITHUB_OUTPUT
- name: Setup porter
uses: porter-dev/[email protected]
with:
tagged_release: v0.56.3
# - name: Test creds
# shell: bash
# env:
# PORTER_CLUSTER: "11"
# PORTER_DEPLOYMENT_TARGET_ID: b4d65cbc-45ec-43e1-9e44-d58cb5de3352
# PORTER_HOST: https://dashboard.internal-tools.porter.run
# PORTER_PR_NUMBER: ${{ github.event.number }}
# PORTER_PROJECT: "8"
# PORTER_REPO_NAME: ${{ github.event.repository.name }}
# PORTER_STACK_NAME: stefan-testcachemultistep
# PORTER_TAG: ${{ steps.vars2.outputs.sha_long }}
# PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }}
# GH_TOKEN: ${{ github.token }}
# run: porter docker configure
# - name: Deploy stack
# timeout-minutes: 30
# run: |
# #echo dockerconfig is: $DOCKER_CONFIG
# #docker buildx create --use --driver docker-container --bootstrap --name porter-builder
# #docker context ls
# #docker buildx ls
# # docker buildx create --use
# #ls $DOCKER_CONFIG
# #cat $DOCKER_CONFIG/config.json
# porter apply --no-pull
# env:
# PORTER_CLUSTER: "11"
# PORTER_DEPLOYMENT_TARGET_ID: b4d65cbc-45ec-43e1-9e44-d58cb5de3352
# PORTER_HOST: https://dashboard.internal-tools.porter.run
# PORTER_PR_NUMBER: ${{ github.event.number }}
# PORTER_PROJECT: "8"
# PORTER_REPO_NAME: ${{ github.event.repository.name }}
# PORTER_STACK_NAME: stefan-testcachemultistep
# PORTER_TAG: ${{ steps.vars2.outputs.sha_long }}
# PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }}
# GH_TOKEN: ${{ github.token }}
# DOCKER_BUILDKIT: "1"
# BUILDKIT_INLINE_CACHE: "1"
# BUILDKIT_NO_CLIENT_TOKEN: true
# PORTER_BUILDKIT_COMPLETE_OVERRIDE: build -f DockerfileStefanTest --cache-to mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars2.outputs.sha_long }} --push --tag 813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars2.outputs.sha_long }} --cache-from type=registry,ref=813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep .
# PORTER_BUILDKIT_COMPLETE_OVERRIDE: buildx --builder porter-builder build -f DockerfileStefanTest . --cache-from type=gha --cache-to type=gha,mode=max --tag 813111008191.dkr.ecr.us-east-2.amazonaws.com/stefan-testcachemultistep:${{ steps.vars2.outputs.sha_long }} --push