Skip to content

Commit

Permalink
fix: update variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dotslashf committed Aug 19, 2024
1 parent b1abf94 commit 6e37263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
# Navigate to the project directory where docker-compose.yml is located
cd /home/fadhlurahman_i/projects/arsip-template
export REGION=asia-southeast1
export PROJECT_ID=${{ secrets.GCP_PROJECT_ID }}
export GITHUB_SHA=${{ github.sha }}
# Pull the new image
docker-compose pull
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '3.8'

services:
web:
image: $REGION-docker.pkg.dev/$PROJECT_ID/arsip-template/app:${GITHUB_SHA}
image: ${REGION}-docker.pkg.dev/${PROJECT_ID}/arsip-template/app:${GITHUB_SHA}
container_name: arsip-template
ports:
- "3000:3000"
Expand Down

0 comments on commit 6e37263

Please sign in to comment.