-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14237 from Budibase/fix/lock-ci-image-sha
Lock CI images to specific SHAs
- Loading branch information
Showing
10 changed files
with
49 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ jobs: | |
- name: Pull testcontainers images | ||
run: | | ||
docker pull testcontainers/ryuk:0.5.1 & | ||
docker pull budibase/couchdb:v3.2.1-sqs & | ||
docker pull budibase/couchdb:v3.3.3 & | ||
docker pull redis & | ||
wait $(jobs -p) | ||
|
@@ -162,17 +162,23 @@ jobs: | |
node-version: 20.x | ||
cache: yarn | ||
|
||
- name: Load dotenv | ||
id: dotenv | ||
uses: falti/[email protected] | ||
with: | ||
path: ./packages/server/datasource-sha.env | ||
|
||
- name: Pull testcontainers images | ||
run: | | ||
docker pull mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04 & | ||
docker pull mysql:8.3 & | ||
docker pull postgres:16.1-bullseye & | ||
docker pull mongo:7.0-jammy & | ||
docker pull mariadb:lts & | ||
docker pull testcontainers/ryuk:0.5.1 & | ||
docker pull budibase/couchdb:v3.2.1-sqs & | ||
docker pull mcr.microsoft.com/mssql/server@${{ steps.dotenv.outputs.MSSQL_SHA }} & | ||
docker pull mysql@${{ steps.dotenv.outputs.MYSQL_SHA }} & | ||
docker pull postgres@${{ steps.dotenv.outputs.POSTGRES_SHA }} & | ||
docker pull mongo@${{ steps.dotenv.outputs.MONGODB_SHA }} & | ||
docker pull mariadb@${{ steps.dotenv.outputs.MARIADB_SHA }} & | ||
docker pull minio/minio & | ||
docker pull redis & | ||
docker pull testcontainers/ryuk:0.5.1 & | ||
docker pull budibase/couchdb:v3.3.3 & | ||
wait $(jobs -p) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MSSQL_SHA=sha256:c4369c38385eba011c10906dc8892425831275bb035d5ce69656da8e29de50d8 | ||
MYSQL_SHA=sha256:9de9d54fecee6253130e65154b930978b1fcc336bcc86dfd06e89b72a2588ebe | ||
POSTGRES_SHA=sha256:bd0d8e485d1aca439d39e5ea99b931160bd28d862e74c786f7508e9d0053090e | ||
MONGODB_SHA=sha256:afa36bca12295b5f9dae68a493c706113922bdab520e901bd5d6c9d7247a1d8d | ||
MARIADB_SHA=sha256:e59ba8783bf7bc02a4779f103bb0d8751ac0e10f9471089709608377eded7aa8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import dotenv from "dotenv" | ||
import { join } from "path" | ||
|
||
const path = join(__dirname, "..", "..", "..", "..", "datasource-sha.env") | ||
dotenv.config({ | ||
path, | ||
}) | ||
|
||
export const MSSQL_IMAGE = `mcr.microsoft.com/mssql/server@${process.env.MSSQL_SHA}` | ||
export const MYSQL_IMAGE = `mysql@${process.env.MYSQL_SHA}` | ||
export const POSTGRES_IMAGE = `postgres@${process.env.POSTGRES_SHA}` | ||
export const MONGODB_IMAGE = `mongo@${process.env.MONGODB_SHA}` | ||
export const MARIADB_IMAGE = `mariadb@${process.env.MARIADB_SHA}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters