mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
Merge pull request #62 from paperless-ngx/feature-docker-build-fix
CI: Use Github Container Registry for docker build step
This commit is contained in:
commit
13426d3c3f
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -288,7 +288,7 @@ jobs:
|
|||||||
name: Prepare
|
name: Prepare
|
||||||
id: prepare
|
id: prepare
|
||||||
run: |
|
run: |
|
||||||
IMAGE_NAME=jonaswinkler/paperless-ng
|
IMAGE_NAME=ghcr.io/${{ github.repository }}
|
||||||
if [[ $GITHUB_REF == refs/tags/ng-* ]]; then
|
if [[ $GITHUB_REF == refs/tags/ng-* ]]; then
|
||||||
TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/tags/ng-},${IMAGE_NAME}:latest
|
TAGS=${IMAGE_NAME}:${GITHUB_REF#refs/tags/ng-},${IMAGE_NAME}:latest
|
||||||
INSPECT_TAG=${IMAGE_NAME}:latest
|
INSPECT_TAG=${IMAGE_NAME}:latest
|
||||||
@ -324,11 +324,12 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-buildx-
|
${{ runner.os }}-buildx-
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to Github Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user