Skip to content

Add dogfood image #3350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 2, 2022
Prev Previous commit
Next Next commit
fixup! Add CI
  • Loading branch information
ammario committed Aug 2, 2022
commit e89abdff17c79c04fd7919dea0fbaeda32aaf1a1
3 changes: 2 additions & 1 deletion .github/workflows/dogfood.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- run: |
echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD | tr / - )" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand All @@ -35,5 +35,6 @@ jobs:
context: "{{defaultContext}}:dogfood"
push: true
tags: "codercom/oss-dogfood:${{ env.BRANCH_NAME }}"
tags: "codercom/oss-dogfood"
cache-from: type=registry,ref=codercom/oss-dogfood:latest
cache-to: type=inline
2 changes: 1 addition & 1 deletion dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "docker_volume" "home_volume" {

resource "docker_container" "workspace" {
count = data.coder_workspace.me.start_count
image = "docker.io/codercom/oss-dogfood:latest"
image = "docker.io/codercom/oss-dogfood:main"
# Uses lower() to avoid Docker restriction on container names.
name = "coder-${data.coder_workspace.me.owner}-${lower(data.coder_workspace.me.name)}"
# Hostname makes the shell more user friendly: coder@my-workspace:~$
Expand Down