Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions gitlab/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- contrib/Dockerfile.base
compare_to: master
before_script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USER --password-stdin
- docker buildx create
--driver=docker-container
--name=buildkit-builder
Expand Down Expand Up @@ -41,9 +42,14 @@ build_and_push_esplora_base:
paths:
- contrib/Dockerfile.base
compare_to: master
variables:
# No source checkout needed; we only tag already-built images.
GIT_STRATEGY: none
needs:
- build_esplora_base_amd64
- build_esplora_base_arm64
before_script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USER --password-stdin
script:
- docker buildx imagetools create
-t ${IMAGE_BASE}:latest
Expand All @@ -58,6 +64,7 @@ build_and_push_esplora_base:
- master
- triggers
before_script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USER --password-stdin
- apk add --no-cache curl
- docker buildx create
--driver=docker-container
Expand Down Expand Up @@ -109,6 +116,7 @@ build_esplora_test_arm64:
except:
- triggers
before_script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USER --password-stdin
- apk add --no-cache curl
- docker buildx create
--driver=docker-container
Expand Down Expand Up @@ -145,9 +153,14 @@ build_and_push_esplora_latest:
- master
except:
- triggers
variables:
# No source checkout needed; we only tag already-built images.
GIT_STRATEGY: none
needs:
- build_esplora_latest_amd64
- build_esplora_latest_arm64
before_script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USER --password-stdin
script:
- docker buildx imagetools create
-t ${IMAGE}:latest
Expand Down
1 change: 1 addition & 0 deletions gitlab/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# 2. The required variables from GitHub Actions are present.
- if: '$CI_PIPELINE_SOURCE == "trigger" && $GITHUB_PR_SHA && $GH_STATUS_TOKEN && $GITHUB_REPO && $GITHUB_PR_REF && $GITHUB_REPO_URL'
before_script:
- echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USER --password-stdin
# Make sure curl and git are available
- apk add --no-cache curl git
# Report "pending" status to GitHub as soon as the job starts
Expand Down