Skip to content

Commit 1f2c423

Browse files
committed
Version and other minor changes
1 parent 8705ef9 commit 1f2c423

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
echo "nodejs_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4040
echo "python_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4141
echo "terraform_version=$(grep "^terraform" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
42-
echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
42+
echo "version=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
43+
# echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
4344
- name: "Check if pull request exists for this branch"
4445
id: pr_exists
4546
env:

.github/workflows/cicd-2-publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: "CI/CD publish"
22

33
on:
4-
pull_request:
5-
types: [closed]
4+
push:
65
branches:
76
- main
87

@@ -54,10 +53,12 @@ jobs:
5453
steps:
5554
- name: "Checkout code"
5655
uses: actions/checkout@v4
56+
5757
- name: "Get the artefacts"
5858
run: |
5959
echo "Getting the artefacts created by the build stage ..."
6060
# TODO: Use either action/cache or action/upload-artifact
61+
6162
- name: "Create release"
6263
id: create_release
6364
uses: actions/create-release@v1

.github/workflows/manual-terraform-plan.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Github OIDC test
1+
name: Manual Terraform Plan
22

33
on:
44
workflow_dispatch:
@@ -35,6 +35,7 @@ jobs:
3535
run: |
3636
make dependencies install-python
3737
make build
38+
3839
- name: "Upload lambda artefact"
3940
uses: actions/upload-artifact@v4
4041
with:
@@ -63,8 +64,8 @@ jobs:
6364

6465
run: |
6566
mkdir -p ./build
66-
echo "Running: make terraform env=$ENVIRONMENT workspace=$ENVIRONMENT stack=networking tf-command=plan args=\"-auto-approve\""
67-
make terraform env=$ENVIRONMENT stack=networking tf-command=plan workspace=$ENVIRONMENT
67+
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=networking tf-command=plan args=\"-auto-approve\""
68+
make terraform env=$ENVIRONMENT stack=networking tf-command=plan workspace=$WORKSPACE
6869
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=plan args=\"-auto-approve\""
6970
make terraform env=$ENVIRONMENT stack=api-layer tf-command=plan workspace=$WORKSPACE
7071

0 commit comments

Comments
 (0)