98
98
steps :
99
99
- id : check_secret_job
100
100
run : |
101
- if [[ "${{ secrets.DOCKER_REPO_DOCS_ON_PREMISE }}" != "" && \
101
+ if [[ "${{ secrets.DOCKER_REPO_ADEMPIERE_LANDING_PAGE }}" != "" && \
102
102
"${{ secrets.DOCKER_USERNAME }}" != "" && \
103
103
"${{ secrets.DOCKER_TOKEN }}" != "" ]]; \
104
104
then
@@ -141,8 +141,8 @@ jobs:
141
141
file : ./build-docker/production-alpine.Dockerfile
142
142
push : true
143
143
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 }}
146
146
147
147
# Publish docker image in Docker Hub registry to application
148
148
push-imame-dhr :
@@ -155,26 +155,28 @@ jobs:
155
155
steps :
156
156
- name : Check out the repo
157
157
uses : actions/checkout@v3
158
-
159
158
- name : Download build dist app
160
159
uses : actions/download-artifact@v3
161
160
with :
162
161
name : adempiere-site
163
162
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
165
167
- name : Login to GitHub Container Registry
166
168
uses : docker/login-action@v2
167
169
with :
168
170
# CONFIGURE DOCKER SECRETS INTO REPOSITORY
169
171
username : ${{ secrets.DOCKER_USERNAME }}
170
172
password : ${{ secrets.DOCKER_TOKEN }}
171
-
172
173
- name : Build and push Docker image
173
174
uses : docker/build-push-action@v4.0.0
174
175
with :
175
176
context : .
176
177
file : ./build-docker/production.Dockerfile
178
+ platforms : linux/amd64,linux/amd64/v2,linux/arm64/v8
177
179
push : true
178
180
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 }}
0 commit comments