mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
arm64 circleci builds
This commit is contained in:
@@ -2,8 +2,8 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
test-backend:
|
test-backend:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:16
|
- image: cimg/node:14.20
|
||||||
- image: circleci/mariadb:latest
|
- image: cimg/mariadb:10.8
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
|
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
|
||||||
MYSQL_DATABASE: photos_test
|
MYSQL_DATABASE: photos_test
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
test-frontend:
|
test-frontend:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:16
|
- image: cimg/node:14.20
|
||||||
|
|
||||||
working_directory: ~/photos/frontend
|
working_directory: ~/photos/frontend
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
|
|
||||||
test-frontend-build:
|
test-frontend-build:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:16
|
- image: cimg/node:14.20
|
||||||
|
|
||||||
working_directory: ~/photos/frontend
|
working_directory: ~/photos/frontend
|
||||||
|
|
||||||
@@ -110,11 +110,11 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: build frontend
|
name: build frontend
|
||||||
command: cd frontend && npm run build
|
command: cd frontend && npm run build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202107-01
|
image: ubuntu-2004:current
|
||||||
working_directory: ~/photos
|
working_directory: ~/photos
|
||||||
|
resource_class: large
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@@ -132,8 +132,33 @@ jobs:
|
|||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: build and push to docker hub
|
name: build and push to docker hub
|
||||||
#command: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag stepanusatiuk/photos:latest .
|
command: docker buildx build --push --platform linux/arm64,linux/amd64 --tag stepanusatiuk/photos:$CIRCLE_BRANCH .
|
||||||
command: docker buildx build --push --platform linux/amd64 --tag stepanusatiuk/photos:$CIRCLE_BRANCH .
|
#command: docker buildx build --push --platform linux/amd64 --tag stepanusatiuk/photos:$CIRCLE_BRANCH .
|
||||||
|
|
||||||
|
# build-arm:
|
||||||
|
# machine:
|
||||||
|
# image: ubuntu-2004:current
|
||||||
|
# resource_class: arm.medium
|
||||||
|
# working_directory: ~/photos
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - checkout
|
||||||
|
# - run:
|
||||||
|
# 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: create docker builder
|
||||||
|
# command: docker buildx create --use
|
||||||
|
#
|
||||||
|
# - run:
|
||||||
|
# name: build and push to docker hub
|
||||||
|
# #command: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag stepanusatiuk/photos:latest .
|
||||||
|
# command: docker buildx build --push --platform linux/arm64 --tag stepanusatiuk/photos:$CIRCLE_BRANCH .
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
@@ -149,3 +174,8 @@ workflows:
|
|||||||
- test-backend
|
- test-backend
|
||||||
- test-frontend
|
- test-frontend
|
||||||
- test-frontend-build
|
- test-frontend-build
|
||||||
|
# - build-arm:
|
||||||
|
# requires:
|
||||||
|
# - test-backend
|
||||||
|
# - test-frontend
|
||||||
|
# - test-frontend-build
|
||||||
|
|||||||
Reference in New Issue
Block a user