Skip to content

Commit 47e1c5c

Browse files
committed
ci 🦊: With Latest tag too
1 parent 0bcfe27 commit 47e1c5c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }}
4141
tags: |
4242
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
43+
${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/')) && format('{0}:latest', env.IMAGE_NAME) || '' }}
4344
platforms: linux/amd64
4445
cache-from: type=gha
4546
cache-to: type=gha,mode=max
@@ -78,6 +79,7 @@ jobs:
7879
push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }}
7980
tags: |
8081
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
82+
${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/')) && format('{0}:latest', env.IMAGE_NAME) || '' }}
8183
platforms: linux/amd64
8284
cache-from: type=gha
8385
cache-to: type=gha,mode=max
@@ -116,6 +118,7 @@ jobs:
116118
push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }}
117119
tags: |
118120
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
121+
${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/')) && format('{0}:latest', env.IMAGE_NAME) || '' }}
119122
platforms: linux/amd64
120123
cache-from: type=gha
121124
cache-to: type=gha,mode=max

1-order-service/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ app.use(express.json());
1616

1717
const startServer = async (): Promise<void> => {
1818
try {
19+
console.log('🔧 Environment Variables:', process.env); // <-- Print all envs
20+
1921
//! Connect to PostgreSQL
2022
const client = await pool.connect();
2123
console.log('🐔🐔🐔 OrderDB connected to PostgreSQL');

0 commit comments

Comments
 (0)