-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update docker-compose on release
Signed-off-by: Akarshit Wal <[email protected]>
- Loading branch information
Showing
4 changed files
with
36,266 additions
and
8,673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ version: 2 | |
# typing. See http://yaml.org/type/merge.html for details. | ||
defaults: &defaults | ||
environment: | ||
CI_SCRIPTS: 'npx --quiet --package @reactioncommerce/[email protected]' | ||
CI_SCRIPTS: "npx --quiet --package @reactioncommerce/[email protected]" | ||
DOCKER_REPOSITORY: "reactioncommerce/reaction" | ||
DOCKER_NAMESPACE: "reactioncommerce" | ||
DOCKER_NAME: "reaction" | ||
|
@@ -111,6 +111,18 @@ jobs: | |
MONGO_USE_UNIFIED_TOPOLOGY: false | ||
command: npm run test:integration:mutation | ||
|
||
release: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- reaction-v5-node-modules-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }} | ||
- reaction-v5-node-modules-{{ .Branch }} | ||
- run: | ||
name: Push the latest version to npm | ||
command: | | ||
npx semantic-release | ||
docker-build-push: | ||
<<: *defaults | ||
|
@@ -120,7 +132,11 @@ jobs: | |
docker_layer_caching: true | ||
- run: | ||
name: Build and push production Docker image | ||
command: ${CI_SCRIPTS} docker-build-tag-push . ${DOCKER_REPOSITORY} | ||
command: | | ||
VERSION=$(git describe --abbrev=0 --tags)-test | ||
docker build -t ${DOCKER_REPOSITORY}:${VERSION} . | ||
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} | ||
docker push ${DOCKER_REPOSITORY}:${VERSION} | ||
workflows: | ||
version: 2 | ||
|
@@ -142,11 +158,19 @@ workflows: | |
- test-integration-mutation: | ||
requires: | ||
- install-dependencies | ||
- docker-build-push: | ||
context: reaction-publish-docker | ||
- release: | ||
context: reaction-publish-semantic-release | ||
requires: | ||
- dockerfile-lint | ||
- eslint | ||
- graphql-lint | ||
- test-integration-query | ||
- test-integration-mutation | ||
filters: | ||
branches: | ||
only: | ||
- trunk | ||
- docker-build-push: | ||
context: reaction-publish-docker | ||
requires: | ||
- release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.