Skip to content

Commit e8aa374

Browse files
committed
update LocalStack image tag in workflows and integration tests
1 parent 0bc05d1 commit e8aa374

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/galexie-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
# this is the multi-arch index sha, get it by 'docker buildx imagetools inspect stellar/quickstart:testing'
1717
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE: docker.io/stellar/quickstart:testing@sha256:5333ec87069efd7bb61f6654a801dc093bf0aad91f43a5ba84806d3efe4a6322
1818
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE_PULL: "false"
19+
GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_TAG: "4.6.0"
1920
GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_PULL: "false"
2021
STELLAR_CORE_VERSION: 22.3.0-2485.e643061a4.focal
2122
steps:
@@ -33,7 +34,7 @@ jobs:
3334
3435
- name: Pull LocalStack image
3536
shell: bash
36-
run: docker pull localstack/localstack:latest
37+
run: docker pull localstack/localstack:${GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_TAG}
3738

3839
- name: Install captive core
3940
run: |

.github/workflows/galexie.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
# this is the multi-arch index sha, get it by 'docker buildx imagetools inspect stellar/quickstart:testing'
2121
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE: docker.io/stellar/quickstart:testing@sha256:5333ec87069efd7bb61f6654a801dc093bf0aad91f43a5ba84806d3efe4a6322
2222
GALEXIE_INTEGRATION_TESTS_QUICKSTART_IMAGE_PULL: "false"
23+
GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_TAG: "4.6.0"
2324
GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_PULL: "false"
2425
steps:
2526
- name: Install captive core
@@ -43,7 +44,7 @@ jobs:
4344
- name: Pull LocalStack image (for S3)
4445
if: ${{ matrix.storage_type == 'S3' }}
4546
shell: bash
46-
run: docker pull localstack/localstack:latest
47+
run: docker pull localstack/localstack:${GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_TAG}
4748

4849
- uses: actions/checkout@v3
4950
with:

services/galexie/internal/integration_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,11 @@ func (s *GalexieTestSuite) mustWaitForCore(t *testing.T, archiveUrls []string, p
412412

413413
func (s *GalexieTestSuite) mustStartLocalStack(t *testing.T) {
414414
t.Log("Starting LocalStack container...")
415-
imageName := "localstack/localstack:latest"
415+
imageTag := os.Getenv("GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_TAG")
416+
if imageTag == "" {
417+
imageTag = "latest"
418+
}
419+
imageName := "localstack/localstack:" + imageTag
416420
pullImage := os.Getenv("GALEXIE_INTEGRATION_TESTS_LOCALSTACK_IMAGE_PULL") != "false"
417421
if pullImage {
418422
imgReader, err := s.dockerCli.ImagePull(s.ctx, imageName, image.PullOptions{})

0 commit comments

Comments
 (0)