Skip to content

Commit

Permalink
load cloudquery version from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemberTang committed Apr 16, 2024
1 parent a0cbba6 commit b79af75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/cq-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
tags: |
type=sha,format=long
- name: Load local .env file
run: |
set -a
source .env
echo $CQ_VERSION
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -63,3 +69,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: CQ_VERSION=$CQ_VERSION
4 changes: 3 additions & 1 deletion containers/cloudquery/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM ghcr.io/cloudquery/cloudquery:5.2.0
ARG CQ_VERSION

FROM ghcr.io/cloudquery/cloudquery:${CQ_VERSION}

# Need to install RDS certs before running Cloudquery container due to
# access to the root filesystem being restricted
Expand Down

0 comments on commit b79af75

Please sign in to comment.