Skip to content

Commit 7a8d487

Browse files
authored
chore: push code-server image to GHCR (#5187)
1 parent 1788537 commit 7a8d487

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/docker.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
username: ${{ secrets.DOCKER_USERNAME }}
3636
password: ${{ secrets.DOCKER_PASSWORD }}
3737

38+
- name: Login to GHCR
39+
uses: docker/login-action@v2
40+
with:
41+
registry: ghcr.io
42+
username: ${{ github.actor }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
3845
- name: Get version
3946
id: version
4047
run: echo "::set-output name=version::$(jq -r .version package.json)"

ci/release-image/docker-bake.hcl

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ target "code-server" {
1515
tags = [
1616
"docker.io/codercom/code-server:latest",
1717
notequal("latest",VERSION) ? "docker.io/codercom/code-server:${VERSION}" : "",
18+
"ghcr.io/coder/code-server:latest",
19+
notequal("latest",VERSION) ? "ghcr.io/coder/code-server:${VERSION}" : "",
1820
]
1921
platforms = ["linux/amd64", "linux/arm64"]
2022
}

0 commit comments

Comments
 (0)