Skip to content

Instantly share code, notes, and snippets.

@JustinJohnWilliams
Last active March 23, 2023 23:30
Show Gist options
  • Save JustinJohnWilliams/a6a500269a47d86d4d1061460e5ea684 to your computer and use it in GitHub Desktop.
Save JustinJohnWilliams/a6a500269a47d86d4d1061460e5ea684 to your computer and use it in GitHub Desktop.
gitlab pipeline
variables:
# When using dind, it's wise to use the overlayfs driver for improved performance.
DOCKER_DRIVER: overlay2
REPOSITORY_NAME: $ORGANIZATION/$CI_PROJECT_NAME
ECR_PROJECT_PATH: $ECR_URL/$ORGANIZATION/$CI_PROJECT_NAME
COMPOSE_STORAGE_ON_S3: concord-ci-build
DEPLOY_FILE_STORAGE_ON_S3: concord-ci-deploy
build:
stage: build
script:
- {{ step1.sh }}
artifacts:
paths:
- ${CI_PROJECT_NAME}.tar
expire_in: 2 hours
only:
- merge_requests
upload-to-ecr-and-s3:
stage: upload-artifacts
script:
- {{ step2.sh }}
only:
- merge_requests
publish-deploy-file-from-tag:
stage: publish-on-tag
script:
- {{ step3.sh }}
only:
- tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment