mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 16:07:49 +01:00
Update config.yml
This commit is contained in:
@@ -2,8 +2,8 @@ version: 2
|
||||
jobs:
|
||||
test-backend:
|
||||
docker:
|
||||
- image: circleci/node:14
|
||||
- image: circleci/mariadb:latest
|
||||
- image: cimg/node:lts
|
||||
- image: cimg/mariadb:latest
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
|
||||
MYSQL_DATABASE: writer_test
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
test-frontend:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: cimg/node:lts
|
||||
|
||||
working_directory: ~/writer/frontend
|
||||
|
||||
@@ -74,7 +74,7 @@ jobs:
|
||||
|
||||
test-frontend-build:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: cimg/node:lts
|
||||
|
||||
working_directory: ~/writer/frontend
|
||||
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
command: cd frontend && npm run build
|
||||
build:
|
||||
machine:
|
||||
image: ubuntu-2004:202107-01
|
||||
image: ubuntu-2204:2022.04.1
|
||||
working_directory: ~/writer
|
||||
|
||||
steps:
|
||||
@@ -121,9 +121,9 @@ jobs:
|
||||
name: log in to docker hub
|
||||
command: echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin
|
||||
|
||||
- run:
|
||||
name: install emulators
|
||||
command: docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
# - run:
|
||||
# name: install emulators
|
||||
# command: docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
|
||||
- run:
|
||||
name: create docker builder
|
||||
@@ -136,7 +136,7 @@ jobs:
|
||||
|
||||
build-arm:
|
||||
machine:
|
||||
image: ubuntu-2004:202107-01
|
||||
image: ubuntu-2204:2022.04.1
|
||||
resource_class: arm.medium
|
||||
working_directory: ~/writer
|
||||
|
||||
@@ -146,9 +146,9 @@ jobs:
|
||||
name: log in to docker hub
|
||||
command: echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin
|
||||
|
||||
- run:
|
||||
name: install emulators
|
||||
command: docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
# - run:
|
||||
# name: install emulators
|
||||
# command: docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
|
||||
- run:
|
||||
name: create docker builder
|
||||
@@ -157,7 +157,7 @@ jobs:
|
||||
- run:
|
||||
name: build and push to docker hub
|
||||
#command: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag stepanusatiuk/writer:latest .
|
||||
command: docker buildx build --push --platform linux/arm64/v8 --tag stepanusatiuk/writer:$CIRCLE_BRANCH .
|
||||
command: docker buildx build --push --platform linux/arm64 --tag stepanusatiuk/writer:$CIRCLE_BRANCH .
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
||||
Reference in New Issue
Block a user