mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-01 12:41:43 +08:00
Publish Docker images to GHCR (#1792)
This commit is contained in:
parent
e73e7d65e9
commit
93e5e52e20
1 changed files with 13 additions and 11 deletions
24
.github/workflows/deploy.yml
vendored
24
.github/workflows/deploy.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue