From 7a8d487729d5c74575503138bbc6e91818a9657a Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 10 May 2022 17:11:06 -0400 Subject: [PATCH] chore: push code-server image to GHCR (#5187) --- .github/workflows/docker.yaml | 7 +++++++ ci/release-image/docker-bake.hcl | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 3d05e754..e97815ca 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -35,6 +35,13 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Login to GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Get version id: version run: echo "::set-output name=version::$(jq -r .version package.json)" diff --git a/ci/release-image/docker-bake.hcl b/ci/release-image/docker-bake.hcl index cb55da69..27bf2194 100644 --- a/ci/release-image/docker-bake.hcl +++ b/ci/release-image/docker-bake.hcl @@ -15,6 +15,8 @@ target "code-server" { tags = [ "docker.io/codercom/code-server:latest", notequal("latest",VERSION) ? "docker.io/codercom/code-server:${VERSION}" : "", + "ghcr.io/coder/code-server:latest", + notequal("latest",VERSION) ? "ghcr.io/coder/code-server:${VERSION}" : "", ] platforms = ["linux/amd64", "linux/arm64"] }