# You can override the included template(s) by including variable overrides # See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings # Note that environment variables can be set in several places # See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables stages: #- test - build - release - push_local ##- push_dockerhub build: image: docker:27.3.1-dind stage: build only: refs: - tags - branches services: - name: docker:27.3.1-dind command: ["--tls=false"] variables: DOCKER_DRIVER: overlay2 DOCKER_HOST: tcp://docker:2375 DOCKER_TLS_CERTDIR: "" FF_GITLAB_REGISTRY_HELPER_IMAGE: 1 script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VCS_REF=$CI_COMMIT_SHORT_SHA ./Docker/ - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA release: image: node:20.17.0-alpine3.19 stage: release only: refs: - master - alpha # This matches maintenance branches - /^(([0-9]+)\.)?([0-9]+)\.x/ # This matches pre-releases - /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/ except: refs: - tags script: - touch CHANGELOG.md - apk add --no-cache git - git config user.email "ci-bot@evanshome.io" - git config user.name "ci-bot" - npm install @semantic-release/gitlab@12.1.1 @semantic-release/changelog@6.0.3 @semantic-release/git@10.0.1 conventional-changelog-eslint@5.0.0 - npx semantic-release artifacts: paths: - CHANGELOG.md push local: image: docker:27.3.1-dind stage: push_local services: - name: docker:27.3.1-dind command: ["--tls=false"] variables: DOCKER_DRIVER: overlay2 DOCKER_HOST: tcp://docker:2375 DOCKER_TLS_CERTDIR: "" GIT_STRATEGY: none FF_GITLAB_REGISTRY_HELPER_IMAGE: 1 only: - master script: - echo $CI_COMMIT_TAG - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE:latest