Skip to content

Commit 0ad7ea2

Browse files
authored
[WOR-2229] Fix pipeline (#67)
* Update upload-artifact to v4 * Update pipeline to use the modern Docker Buildpack v6 * Fix path not found errror * Add removed build rootfs images * Remove v6 part from the build mendix app step name * Enable unit testing in Docker environment * Remove wrong constant * Change v4 to actual commit hash
1 parent 9b0deb1 commit 0ad7ea2

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/release2github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
155155
- name: Archive results
156156
if: ${{ always() }}
157-
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2
157+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
158158
with:
159159
name: Results
160160
path: ${{ github.workspace }}/out/*

.github/workflows/scripts/runapp.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
environment:
1313
ADMIN_PASSWORD: Password1!
1414
DATABASE_ENDPOINT: postgres://mendix:mendix@db:5432/mendix
15+
MX_UnitTesting_Enabled: "true"
1516
ports:
1617
- 8080:8080
1718
links:

.github/workflows/unittests.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,23 @@ jobs:
3939
echo "Detected MX Version:$VERSION"
4040
echo "MX_VERSION=$VERSION" >> $GITHUB_ENV
4141
42-
- name: Create build directory
43-
run: |
44-
mkdir build-pack/build
45-
4642
- name: Create output directory
4743
run: mkdir $GITHUB_WORKSPACE/out
4844

49-
- name: Copy application files to build directory
50-
run: cp -v -r app/Source/. build-pack/build
45+
- name: Build Mendix app
46+
run: |
47+
cd build-pack
48+
python3 build.py --source ../app/Source --destination ../docker-context build-mda-dir
5149
52-
- name: Build docker image
50+
- name: Build rootfs images
5351
run: |
5452
cd build-pack
5553
docker build -t mendix-rootfs:app -f rootfs-app.dockerfile .
5654
docker build -t mendix-rootfs:builder -f rootfs-builder.dockerfile .
57-
docker build -t mxbuildpack --build-arg BUILD_PATH=build .
55+
56+
- name: Build docker image
57+
run: |
58+
docker build -t mxbuildpack docker-context
5859
5960
- name: Run application
6061
run: |
@@ -86,7 +87,7 @@ jobs:
8687

8788
- name: Archive results
8889
if: ${{ always() }}
89-
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
90+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
9091
with:
9192
name: Results
9293
path: ${{ github.workspace }}/out/*

0 commit comments

Comments
 (0)