Skip to content

Commit 117bad5

Browse files
committed
Add multiplatform support
1 parent 6286cbd commit 117bad5

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/publish.yaml

+10-8
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
steps:
9999
- id: check_secret_job
100100
run: |
101-
if [[ "${{ secrets.DOCKER_REPO_DOCS_ON_PREMISE }}" != "" && \
101+
if [[ "${{ secrets.DOCKER_REPO_ADEMPIERE_LANDING_PAGE }}" != "" && \
102102
"${{ secrets.DOCKER_USERNAME }}" != "" && \
103103
"${{ secrets.DOCKER_TOKEN }}" != "" ]]; \
104104
then
@@ -141,8 +141,8 @@ jobs:
141141
file: ./build-docker/production-alpine.Dockerfile
142142
push: true
143143
tags: |
144-
${{ secrets.DOCKER_REPO_DOCS_ON_PREMISE }}:alpine
145-
${{ secrets.DOCKER_REPO_DOCS_ON_PREMISE }}:alpine-${{ github.event.release.tag_name }}
144+
${{ secrets.DOCKER_REPO_ADEMPIERE_LANDING_PAGE }}:alpine
145+
${{ secrets.DOCKER_REPO_ADEMPIERE_LANDING_PAGE }}:alpine-${{ github.event.release.tag_name }}
146146
147147
# Publish docker image in Docker Hub registry to application
148148
push-imame-dhr:
@@ -155,26 +155,28 @@ jobs:
155155
steps:
156156
- name: Check out the repo
157157
uses: actions/checkout@v3
158-
159158
- name: Download build dist app
160159
uses: actions/download-artifact@v3
161160
with:
162161
name: adempiere-site
163162
path: dist
164-
163+
- name: Set up QEMU
164+
uses: docker/setup-qemu-action@v2
165+
- name: Set up Docker Buildx
166+
uses: docker/setup-buildx-action@v2
165167
- name: Login to GitHub Container Registry
166168
uses: docker/login-action@v2
167169
with:
168170
# CONFIGURE DOCKER SECRETS INTO REPOSITORY
169171
username: ${{ secrets.DOCKER_USERNAME }}
170172
password: ${{ secrets.DOCKER_TOKEN }}
171-
172173
- name: Build and push Docker image
173174
uses: docker/build-push-action@v4.0.0
174175
with:
175176
context: .
176177
file: ./build-docker/production.Dockerfile
178+
platforms: linux/amd64,linux/amd64/v2,linux/arm64/v8
177179
push: true
178180
tags: |
179-
${{ secrets.DOCKER_REPO_DOCS_ON_PREMISE }}:latest
180-
${{ secrets.DOCKER_REPO_DOCS_ON_PREMISE }}:${{ github.event.release.tag_name }}
181+
${{ secrets.DOCKER_REPO_ADEMPIERE_LANDING_PAGE }}:latest
182+
${{ secrets.DOCKER_REPO_ADEMPIERE_LANDING_PAGE }}:${{ github.event.release.tag_name }}

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ docker compose -f build-docker/docker-compose.yaml up
5555
Download docker image:
5656

5757
```shell
58-
docker pull solopcloud/adempiere-site-on-premise
58+
docker pull openls/adempiere-landing-page
5959
```
6060

6161
Run the docker container
6262
```shell
6363
docker run -it -d \
64-
--name adempiere-site \
64+
--name adempiere-landing-page \
6565
-p 80:80 \
6666
-e VUE_HOST="http://localhost:9526" \
6767
-e ZK_HOST="http://localhost:8888" \
68-
solopcloud/adempiere-site-on-premise
68+
openls/adempiere-landing-page
6969
```
7070

7171
### Build docker image (for development only):
@@ -80,5 +80,5 @@ pnpm run build:vite
8080

8181
Build docker image (for development only):
8282
```shell
83-
docker build -t solopcloud/adempiere-site-on-premise:dev -f ./build-docker/development.Dockerfile .
83+
docker build -t openls/adempiere-landing-page:dev -f ./build-docker/development.Dockerfile .
8484
```

0 commit comments

Comments
 (0)