Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
bb9bed9
foo
withnale Nov 8, 2023
2164dba
see what pops - 20:40:32
withnale Nov 27, 2023
13d12c6
see what pops - 20:44:55
withnale Nov 27, 2023
49dba7e
Merge branch 'master' into full-rework3
withnale Nov 27, 2023
cbb5644
see what pops - 10:28:18
withnale Nov 28, 2023
da814a3
quick-commit - Wed 11/29/2023 10:16:11
withnale Nov 29, 2023
fbaf1d3
quick-commit - Wed 11/29/2023 16:36:03
withnale Nov 29, 2023
b7de364
quick-commit - Wed 11/29/2023 16:41:28
withnale Nov 29, 2023
6fdb89b
quick-commit - Wed 11/29/2023 16:52:57
withnale Nov 29, 2023
905e897
quick-commit - Wed 11/29/2023 17:02:13
withnale Nov 29, 2023
9daa492
quick-commit - Wed 11/29/2023 17:15:26
withnale Nov 29, 2023
5fa6f62
quick-commit - Wed 11/29/2023 17:16:40
withnale Nov 29, 2023
06b3a42
quick-commit - Wed 11/29/2023 17:17:34
withnale Nov 29, 2023
1fa479a
quick-commit - Wed 11/29/2023 17:19:14
withnale Nov 29, 2023
685d356
quick-commit - Wed 11/29/2023 17:20:18
withnale Nov 29, 2023
1ccde22
quick-commit - Wed 11/29/2023 17:21:42
withnale Nov 29, 2023
18df163
quick-commit - Wed 11/29/2023 18:14:50
withnale Nov 29, 2023
9330ada
quick-commit - Wed 11/29/2023 18:34:13
withnale Nov 29, 2023
fc5d341
quick-commit - Wed 11/29/2023 18:36:45
withnale Nov 29, 2023
5180b07
quick-commit - Wed 11/29/2023 18:53:11
withnale Nov 29, 2023
6d4f128
quick-commit - Wed 11/29/2023 22:23:39
withnale Nov 29, 2023
2f24466
quick-commit - Wed 11/29/2023 22:25:18
withnale Nov 29, 2023
067f15e
quick-commit - Wed 11/29/2023 22:26:35
withnale Nov 29, 2023
03cf862
quick-commit - Wed 11/29/2023 22:27:47
withnale Nov 29, 2023
a570ac2
quick-commit - Wed 11/29/2023 23:00:04
withnale Nov 29, 2023
bc8ebc6
quick-commit - Wed 11/29/2023 23:01:29
withnale Nov 29, 2023
260b70a
quick-commit - Wed 11/29/2023 23:30:26
withnale Nov 29, 2023
0b8706a
quick-commit - Wed 11/29/2023 23:31:55
withnale Nov 29, 2023
faf750a
quick-commit - Wed 11/29/2023 23:33:34
withnale Nov 29, 2023
619bacb
quick-commit - Wed 11/29/2023 23:43:57
withnale Nov 29, 2023
ad3c708
quick-commit - Wed 11/29/2023 23:46:07
withnale Nov 29, 2023
8e7223b
quick-commit - Wed 11/29/2023 23:48:15
withnale Nov 29, 2023
19e4afa
quick-commit - Wed 11/29/2023 23:52:06
withnale Nov 29, 2023
aaf24e1
quick-commit - Wed 11/29/2023 23:53:12
withnale Nov 29, 2023
c11d05c
quick-commit - Fri 12/01/2023 08:57:25
withnale Dec 1, 2023
aec1e51
quick-commit - Fri 12/01/2023 09:01:56
withnale Dec 1, 2023
b99e616
quick-commit - Fri 12/01/2023 09:03:58
withnale Dec 1, 2023
7adf9d5
quick-commit - Fri 12/01/2023 09:05:11
withnale Dec 1, 2023
2d4bb9f
quick-commit - Fri 12/01/2023 09:13:48
withnale Dec 1, 2023
72a6a44
quick-commit - Fri 12/01/2023 09:18:28
withnale Dec 1, 2023
1330a50
quick-commit - Fri 12/01/2023 09:58:41
withnale Dec 1, 2023
a899103
quick-commit - Fri 12/01/2023 10:00:31
withnale Dec 1, 2023
bb7e88a
quick-commit - Fri 12/01/2023 10:04:45
withnale Dec 1, 2023
2a322b4
quick-commit - Fri 12/01/2023 10:05:14
withnale Dec 1, 2023
7d78447
quick-commit - Fri 12/01/2023 10:14:01
withnale Dec 1, 2023
14b611a
quick-commit - Fri 12/01/2023 10:17:27
withnale Dec 1, 2023
bca676a
quick-commit - Fri 12/01/2023 10:27:20
withnale Dec 1, 2023
99cab5f
quick-commit - Fri 12/01/2023 10:39:27
withnale Dec 1, 2023
f5b9e9d
quick-commit - Fri 12/01/2023 11:36:27
withnale Dec 1, 2023
028541d
quick-commit - Fri 12/01/2023 11:37:39
withnale Dec 1, 2023
2861d51
quick-commit - Fri 12/01/2023 11:39:11
withnale Dec 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/actions/execute-command/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: foo

inputs:
command:
required: true
type: string
github_env:
required: false
type: string
default: ''
dry-run:
required: false
type: boolean
default: false
region:
required: false
type: string
default: europe-west2
tag:
required: false
type: string
default: ''
semver:
required: false
type: string
default: ''
zone:
required: false
type: string
default: europe-west2-a
pre-targets:
description: |
Make targets to run before the command
required: false
type: string
default: ''
post-targets:
description: |
Make targets to run after the command
required: false
type: string
default: ''






runs:
using: 'composite'
steps:
- shell: bash
run: |
echo "TAG_VERSION=${{ inputs.tag }}" >> $GITHUB_ENV
echo "SEMVER=${{ inputs.semver }}" >> $GITHUB_ENV
echo "REGION=${{ inputs.region }}" >> $GITHUB_ENV
echo "REGISTRY=${{ inputs.region }}-docker.pkg.dev/${{ vars.PROJECT_ID }}/tenant" >> $GITHUB_ENV
echo "SERVICE_ACCOUNT=p2p-${{ vars.TENANT_NAME }}@${{ vars.PROJECT_ID }}.iam.gserviceaccount.com" >> $GITHUB_ENV
echo "WORKLOAD_IDENTITY_PROVIDER=projects/${{ vars.PROJECT_NUMBER }}/locations/global/workloadIdentityPools/p2p-${{ vars.TENANT_NAME }}/providers/p2p-${{ vars.TENANT_NAME }}" >> $GITHUB_ENV
echo "BASE_URL=${{ vars.BASE_URL }}" >> $GITHUB_ENV
echo "ENVIRONMENT=${{ vars.ENV }}" >> $GITHUB_ENV
echo "ENV=${{ vars.ENV }}" >> $GITHUB_ENV
echo "PROJECT_NUMBER=${{ vars.PROJECT_NUMBER }}" >> $GITHUB_ENV
echo "PROJECT_ID=${{ vars.PROJECT_ID }}" >> $GITHUB_ENV
echo "TENANT_NAME=${{ vars.TENANT_NAME }}" >> $GITHUB_ENV
echo "ADDITIONAL_ENV_VARS=FOO,BAR" >> $GITHUB_ENV

- shell: bash
run: |
echo "TAG_VERSION=$TAG_VERSION"
echo "SEMVER=$SEMVER"
echo "BASE_URL=$BASE_URL"
echo "PROJECT_ID=$PROJECT_ID"
echo "REGION=$REGION"
echo "SERVICE_ACCOUNT=$SERVICE_ACCOUNT"
echo "WORKLOAD_IDENTITY_PROVIDER=$WORKLOAD_IDENTITY_PROVIDER"
echo "REGISTRY=$REGISTRY"
echo "PROJECT_NUMBER=$PROJECT_NUMBER"
echo "TENANT_NAME=$TENANT_NAME"
echo "ENV=$ENVIRONMENT"
59 changes: 59 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]

permissions:
contents: read
id-token: write

jobs:

testJob:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v3
- id: set_var
run: |
content=`cat ./package.json`
# the following lines are only required for multi line json
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
# end of optional handling for multi line json
echo "::set-output name=packageJson::$content"
- run: |
echo "${{fromJson(steps.set_var.outputs.packageJson).version}}"


version:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Get version1
env:
STAGE_DEV: ${{ vars.STAGE_DEV }}
shell: bash
run: |
echo "STAGE_DEV=$STAGE_DEV"

- name: Get version2
env:
STAGE_DEV: ${{ fromJson(vars.STAGE_DEV).include[0]['deploy_env'] }}
shell: bash
run: |
echo "STAGE_DEV=$STAGE_DEV"
echo "STAGE_DEV=${{ fromJson(vars.STAGE_DEV).include[0]['deploy_env'] }}"
# fastfeedback:
# uses: ./.github/workflows/external-workflow-fastfeedback.yaml
#
# extendedtests:
# uses: ./.github/workflows/external-workflow-exttests.yaml
# needs: [fastfeedback]
# with:
# image_tag: ${{ needs.fastfeedback.outputs.image_tag }}
# semver: ${{ needs.fastfeedback.outputs.semver }}
## prod:
## uses: ./.github/workflows/external-workflow-prod.yaml
16 changes: 0 additions & 16 deletions .github/workflows/dev.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/envmatrix-execute-command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
workflow_call:
inputs:
command:
required: true
type: string
envmatrix:
required: true
type: string
tag:
required: false
type: string
default: ''
semver:
required: false
type: string
default: ''


jobs:
env:
strategy:
matrix: ${{ fromJSON(inputs.envmatrix) }}
fail-fast: false
uses: ./.github/workflows/execute-command.yaml
with:
command: ${{ inputs.command }}
github_env: ${{ matrix.deploy_env }}
tag: ${{ inputs.tag }}
semver: ${{ inputs.semver }}

82 changes: 82 additions & 0 deletions .github/workflows/execute-command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
on:
workflow_call:
inputs:
command:
required: true
type: string
github_env:
required: false
type: string
default: ''
dry-run:
required: false
type: boolean
default: false
region:
required: false
type: string
default: europe-west2
tag:
required: false
type: string
default: ''
semver:
required: false
type: string
default: ''
zone:
required: false
type: string
default: europe-west2-a
pre-targets:
description: |
Make targets to run before the command
required: false
type: string
default: ''
post-targets:
description: |
Make targets to run after the command
required: false
type: string
default: ''


jobs:
exec:
name: '${{ inputs.command }} (${{ inputs.github_env }})'
runs-on: ubuntu-latest
environment: ${{ inputs.github_env }}
env:
TAG_VERSION: ${{ inputs.tag }}
SEMVER: ${{ inputs.semver }}
REGION: ${{ inputs.region }}
REGISTRY: ${{ inputs.region }}-docker.pkg.dev/${{ vars.PROJECT_ID }}/tenant
SERVICE_ACCOUNT: p2p-${{ vars.TENANT_NAME }}@${{ vars.PROJECT_ID }}.iam.gserviceaccount.com
WORKLOAD_IDENTITY_PROVIDER: projects/${{ vars.PROJECT_NUMBER }}/locations/global/workloadIdentityPools/p2p-${{ vars.TENANT_NAME }}/providers/p2p-${{ vars.TENANT_NAME }}
BASE_URL: ${{ vars.BASE_URL }}
ENVIRONMENT: ${{ vars.ENV }}
ENV: ${{ vars.ENV }}
PROJECT_NUMBER: ${{ vars.PROJECT_NUMBER }}
PROJECT_ID: ${{ vars.PROJECT_ID }}
TENANT_NAME: ${{ vars.TENANT_NAME }}
ADDITIONAL_ENV_VARS: "FOO,BAR"
steps:
- name: add_additional_env_vars
env:
ALL_VARS: ${{ toJSON(vars) }}"
run: |
echo "ALL_VARS=$ALL_VARS"
- name: print
run: |
echo "TAG_VERSION=$TAG_VERSION"
echo "SEMVER=$SEMVER"
echo "BASE_URL=$BASE_URL"
echo "PROJECT_ID=$PROJECT_ID"
echo "REGION=$REGION"
echo "SERVICE_ACCOUNT=$SERVICE_ACCOUNT"
echo "WORKLOAD_IDENTITY_PROVIDER=$WORKLOAD_IDENTITY_PROVIDER"
echo "REGISTRY=$REGISTRY"
echo "PROJECT_NUMBER=$PROJECT_NUMBER"
echo "TENANT_NAME=$TENANT_NAME"
echo "ENV=$ENVIRONMENT"
Loading