Skip to content

Commit ce44dd4

Browse files
committed
use GHCR for test with sha of last commit
1 parent 46c26ae commit ce44dd4

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.github/workflows/test.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
uses: docker/metadata-action@v4
2525
with:
2626
images: |
27-
plone/plone-backend
27+
ghcr.io/plone/plone-backend
2828
tags: |
29-
type=raw,value=test
29+
type=sha
3030
3131
- name: Set up QEMU
3232
uses: docker/setup-qemu-action@v2
@@ -37,8 +37,9 @@ jobs:
3737
- name: Login to DockerHub
3838
uses: docker/login-action@v2
3939
with:
40-
username: ${{ secrets.DOCKERHUB_USERNAME }}
41-
password: ${{ secrets.DOCKERHUB_TOKEN }}
40+
registry: ghcr.io
41+
username: ${{ github.repository_owner }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
4243

4344
- name: Build image for testing
4445
uses: docker/build-push-action@v3
@@ -50,4 +51,4 @@ jobs:
5051

5152
- name: Test
5253
run: |
53-
./test/run.sh plone/plone-backend:test
54+
./test/run.sh ${{ steps.meta.outputs.tags }}

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ WORKDIR /app
3737
COPY --from=builder --chown=500:500 /app /app
3838

3939
RUN <<EOT
40+
ls -la /app/bin
4041
useradd --system -m -d /app -U -u 500 plone
4142
runDeps="git libjpeg62 libopenjp2-7 libpq5 libtiff5 libxml2 libxslt1.1 lynx netcat poppler-utils rsync wv busybox gosu libmagic1 make"
4243
apt-get update

test/config.sh

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ globalTests+=(
55
override-cmd
66
)
77

8+
imageTests_main_set='
9+
plone-basics
10+
plone-develop
11+
plone-site
12+
plone-addons
13+
plone-cors
14+
plone-arbitrary-user
15+
plone-listenport
16+
plone-zeoclient
17+
plone-relstorage
18+
plone-shared-blob-dir
19+
'
20+
821
imageTests+=(
9-
[plone/plone-backend]='
10-
plone-basics
11-
plone-develop
12-
plone-site
13-
plone-addons
14-
plone-cors
15-
plone-arbitrary-user
16-
plone-listenport
17-
plone-zeoclient
18-
plone-relstorage
19-
plone-shared-blob-dir
20-
'
22+
[plone/plone-backend]=$imageTests_main_set
23+
[ghcr.io/plone/plone-backend]=$imageTests_main_set
2124
)
2225

2326
globalExcludeTests+=(
24-
27+
2528
)

0 commit comments

Comments
 (0)