Skip to content

Commit af5670a

Browse files
author
Berry Langerak
committed
Externalizing CONTAINER_ID to configuration.
1 parent 502ca95 commit af5670a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ env:
1616
# github.repository as <account>/<repo>
1717
IMAGE_NAME: ${{ github.repository }}
1818

19-
2019
jobs:
2120
build:
2221
runs-on: ubuntu-latest
@@ -67,4 +66,4 @@ jobs:
6766
password: ${{ secrets.TILAA_PASSWORD }}
6867

6968
- name: Deploy container
70-
run: tilaa container modify --image ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} -i 532
69+
run: tilaa container modify --image ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} -i ${{ env.CONTAINER_ID }}

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
@app.route("/")
88
def hello():
9-
return "Hello stadslab! Running for %d seconds" % (time.time() - now)
9+
return "Hello world! Running for %d seconds" % (time.time() - now)
1010

1111
if __name__ == "__main__":
1212
now = time.time()

0 commit comments

Comments
 (0)