Update docker-image workflow to use ghcr.io
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Apr 2021 12:32:16 +0000 (14:32 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Apr 2021 12:32:16 +0000 (14:32 +0200)
.github/workflows/docker-image.yml

index fb9271949b81d0a92a3c49781bf7de7d27e70179..1651000abd0e8eb6a898266fd96591a3480134e8 100644 (file)
@@ -5,16 +5,16 @@ on:
       - master
 jobs:
   push_to_registry:
-    name: Push Docker image to GitHub Packages
+    name: Push Docker image to ghcr.io
     runs-on: ubuntu-latest
     steps:
-      - name: Check out the repo
-        uses: actions/checkout@v2
-      - name: Push to GitHub Packages
-        uses: docker/build-push-action@v1
+      - uses: docker/setup-buildx-action@v1
+      - uses: docker/login-action@v1 
         with:
+          registry: ghcr.io
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
-          registry: docker.pkg.github.com
-          repository: woltlab/blacklist/updater
-          tag_with_ref: true
+      - uses: docker/build-push-action@v2
+        with:
+          push: true
+          tags: ghcr.io/woltlab/blacklist:latest