diff options
| author | yangwei <[email protected]> | 2024-02-26 19:26:43 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-02-27 10:55:13 +0800 |
| commit | f467df42ec53958848247b000ff07bddf2fdaf75 (patch) | |
| tree | d67195db71815b10288627e16d2f30f4f17166c5 /.gitlab-ci.yml | |
| parent | d6cec34bb7b70016cb9c079a152c6612605116ba (diff) | |
🎉 init(first commit):
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e873dc6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +image: docker:stable + +variables: + IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG + +before_script: + - docker info + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + +build: + stage: build + script: + - docker build -t $IMAGE_TAG . + - docker push $IMAGE_TAG + tags: + - share |
