Skip to content

Commit

Permalink
Merge pull request #115 from sineverba/fix-linux-platform
Browse files Browse the repository at this point in the history
Fix Docker platforms
  • Loading branch information
sineverba authored Jan 15, 2024
2 parents ffefd1a + da4c79c commit 19ab962
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .semaphore/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ blocks:
> ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
- docker buildx create --name multiarch --use
- docker buildx inspect --bootstrap --builder multiarch
- >-
docker buildx build
--platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
--platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
--build-arg NODE_VERSION=$NODE_VERSION
--build-arg NPM_VERSION=$NPM_VERSION
--build-arg NGINX_VERSION=$NGINX_VERSION
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 1.2.0
# 1.2.1
+ Fix Docker architecture

## 1.2.0
+ Upgrade dependencies
+ Move v1 to the code
+ Remove servers inside tests
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include .env

IMAGE_NAME=registry.gitlab.com/cicdprojects/online-banking-frontend
CONTAINER_NAME=online-banking-frontend
APP_VERSION=1.2.0-dev
APP_VERSION=1.2.1-dev
NODE_VERSION=20.11.0
NPM_VERSION=10.3.0
NGINX_VERSION=1.25.3
Expand Down Expand Up @@ -50,8 +50,12 @@ build:

multi:
docker buildx build \
--platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7 \
--platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
--build-arg NODE_VERSION=$(NODE_VERSION) \
--build-arg NPM_VERSION=$(NPM_VERSION) \
--build-arg NGINX_VERSION=$(NGINX_VERSION) \
--tag $(IMAGE_NAME):$(APP_VERSION) \
--tag $(IMAGE_NAME):latest \
--push \
--file dockerfiles/production/build/docker/Dockerfile "."

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/production/deploy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.8"
services:
online-banking-frontend:
image: registry.gitlab.com/cicdprojects/online-banking-frontend:1.2.0
image: registry.gitlab.com/cicdprojects/online-banking-frontend:1.2.1
container_name: ${CONTAINER_NAME}
restart: unless-stopped
env_file:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "online-banking-frontend",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"dependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=online-banking-frontend
sonar.projectVersion=1.2.0
sonar.projectVersion=1.2.1
sonar.organization=sineverba
sonar.sources=src
sonar.exclusions=**/node_modules/**,src/scss/**,src/setupTests.js,src/__tests__/**,src/assets/**
Expand Down

0 comments on commit 19ab962

Please sign in to comment.