Skip to content

Commit

Permalink
Update CIs to pull correct image based on branch (apache#1105)
Browse files Browse the repository at this point in the history
- This commit/PR also serves as a test commit/PR for the newest
  image build of apache/age:latest
  • Loading branch information
MuhammadTahaNaveed committed Aug 24, 2023
1 parent 8986de3 commit a24cf40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jdbc-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
run: |
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
fi
Expand Down
2 changes: 1 addition & 1 deletion drivers/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.3"
services:
db:
image: apache/age:PG14_latest
image: apache/age:${TAG}
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=agens
Expand Down

0 comments on commit a24cf40

Please sign in to comment.