From 93e5e52e20fc484fc59a7235134fc910322a0a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 15 Mar 2023 15:59:05 +0100 Subject: [PATCH] Publish Docker images to GHCR (#1792) --- .github/workflows/deploy.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eb056bda5..eb667de46 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -69,16 +69,17 @@ jobs: uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Docker meta id: meta uses: docker/metadata-action@v3 with: - images: livebook/livebook + images: ghcr.io/livebook-dev/livebook tags: | type=semver,pattern={{version}} type=edge,branch=main @@ -103,16 +104,17 @@ jobs: uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Docker meta id: meta uses: docker/metadata-action@v3 with: - images: livebook/livebook + images: ghcr.io/livebook-dev/livebook flavor: | latest=false tags: | @@ -126,7 +128,7 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} build-args: | - BASE_IMAGE=livebook/utils:elixir-cuda11.8 + BASE_IMAGE=ghcr.io/livebook-dev/utils:elixir-cuda11.8 create_draft_release: if: github.ref_type == 'tag'