Skip to content

Commit

Permalink
chore: push code-server image to GHCR (#5187)
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored May 10, 2022
1 parent 1788537 commit 7a8d487
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
2 changes: 2 additions & 0 deletions ci/release-image/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit 7a8d487

Please sign in to comment.