From f367d1494447ed5ed296e3cbe77106f785d42cdd Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Thu, 1 Dec 2022 09:30:02 +0100 Subject: [PATCH] use GHCR for test with sha of last commit --- .github/workflows/test.yml | 11 ++++++----- Dockerfile | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b28a0a..6dc26de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 @@ -50,4 +51,4 @@ jobs: - name: Test run: | - ./test/run.sh plone/plone-backend:test + ./test/run.sh ${{ steps.meta.outputs.tags }} diff --git a/Dockerfile b/Dockerfile index 9eb6a84..dc14c14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ WORKDIR /app COPY --from=builder --chown=500:500 /app /app RUN <