Skip to content

Commit

Permalink
use GHCR for test with sha of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 1, 2022
1 parent 46c26ae commit f367d14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
plone/plone-backend
ghcr.io/plone/plone-backend
tags: |
type=raw,value=test
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -37,8 +37,9 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Test
run: |
./test/run.sh plone/plone-backend:test
./test/run.sh ${{ steps.meta.outputs.tags }}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ WORKDIR /app
COPY --from=builder --chown=500:500 /app /app

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

0 comments on commit f367d14

Please sign in to comment.