Skip to content

Commit 7066a4f

Browse files
committed
Set tag before kubectl apply. (#122)
1 parent b6471c7 commit 7066a4f

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ jobs:
9090
- name: GitHub Release
9191
run: 'TOKEN=${{ secrets.GITHUBPAT }} ./github-release.sh'
9292
shell: bash
93+
- name: Set release version
94+
run: './configure_deployment.sh'
95+
shell: bash
9396
- uses: actions-hub/kubectl@master
9497
env:
9598
KUBE_CONFIG: ${{ secrets.KUBECONFIG_MICROK8S }}

configure_deployment.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set -e
2+
3+
source $(dirname "$0")/version.sh
4+
5+
read_version
6+
7+
echo "Configuring deployment with: $BUILD_VERSION"
8+
9+
10+
find deploy/ -type f -name "*.yaml" -exec sed -i "s/\$VERSION/v$BUILD_VERSION/g" {} \;
11+

deploy/aperturedb-python-cc-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
containers:
1919
- name: aperturedb-python-coverage
20-
image: 684446431133.dkr.ecr.us-west-2.amazonaws.com/aperturedb-python-coverage
20+
image: 684446431133.dkr.ecr.us-west-2.amazonaws.com/aperturedb-python-coverage:$VERSION
2121
ports:
2222
- containerPort: 80
2323
resources: {}

deploy/aperturedb-python-docs-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
containers:
1919
- name: aperturedb-python-docs
20-
image: 684446431133.dkr.ecr.us-west-2.amazonaws.com/aperturedb-python-docs
20+
image: 684446431133.dkr.ecr.us-west-2.amazonaws.com/aperturedb-python-docs:$VERSION
2121
ports:
2222
- containerPort: 80
2323
resources: {}

0 commit comments

Comments
 (0)