From 763384e94b300c258b910de6353f4c7269259baf Mon Sep 17 00:00:00 2001 From: MrNaif2018 Date: Fri, 16 Oct 2020 21:58:31 +0300 Subject: [PATCH] Prepare first release 0.0.0.1 --- .circleci/config.yml | 12 ++++++++---- layouts/default.vue | 8 +++++++- version.js | 3 +++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 version.js diff --git a/.circleci/config.yml b/.circleci/config.yml index 5c801b6..2616dae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,9 +45,11 @@ jobs: - setup_remote_docker: version: 19.03.13 - run: | - docker build -t $DOCKER_IMAGE:latest . + docker build -t $DOCKER_IMAGE:$CIRCLE_TAG . + docker tag $DOCKER_IMAGE:$CIRCLE_TAG $DOCKER_IMAGE:stable docker login -u $DOCKER_USER -p $DOCKER_PASS - docker push $DOCKER_IMAGE:latest + docker push $DOCKER_IMAGE:$CIRCLE_TAG + docker push $DOCKER_IMAGE:stable workflows: version: 2 @@ -55,9 +57,11 @@ workflows: jobs: - test - deploy: + context: global requires: - test filters: branches: - only: master - context: global + ignore: /.*/ + tags: + only: /[0-9]+(\.[0-9]+)*/ diff --git a/layouts/default.vue b/layouts/default.vue index 4da25f9..1ff03c0 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -6,14 +6,20 @@ nuxt .hero-foot .container - p © BitcartCC 2018-2020 + p © BitcartCC v{{VERSION}}