Skip to content

Commit

Permalink
Merge pull request #366 from ever-co/develop
Browse files Browse the repository at this point in the history
feat: release
  • Loading branch information
evereq committed Mar 5, 2023
2 parents 86dc0fb + f7f8bd7 commit bafb5d8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ jobs:
name: Build
command: RELEASE=$CIRCLE_TAG bin/build-docker.sh

build_old:
docker:
- image: 'cimg/base:stable'
steps:
- checkout
- node/install:
install-yarn: true
node-version: '16.13'
- run: node --version
- setup_remote_docker
- run:
name: Build
command: RELEASE=$CIRCLE_TAG bin/build-docker-old.sh

workflows:
version: 2
Expand Down Expand Up @@ -177,4 +190,14 @@ workflows:
only: master
tags:
only: /^v.*/

- build_old:
context: traduora
requires:
- check_lint
- test_unit
- test_e2e
filters:
branches:
only: master
tags:
only: /^v.*/
18 changes: 18 additions & 0 deletions bin/build-docker-old.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -e

DOCKER_REPO=traduora/traduora

docker build -t "$DOCKER_REPO:latest" .

if [[ $RELEASE != "" ]]; then
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin

echo "Releasing docker image: $DOCKER_REPO with latest tag"
docker push "$DOCKER_REPO:latest"

echo "Releasing docker image: $DOCKER_REPO with tag: $RELEASE"
docker tag "$DOCKER_REPO:latest" $DOCKER_REPO:$RELEASE
docker push "$DOCKER_REPO:$RELEASE"
fi

1 comment on commit bafb5d8

@vercel
Copy link

@vercel vercel bot commented on bafb5d8 Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

traduora-docs-co – ./

traduora-docs-co-git-master-ever-co.vercel.app
traduora-docs-co-ever-co.vercel.app
docs.traduora.co

Please sign in to comment.