Skip to content

fix: remove ubuntu user (UID 1000 conflict) before creating coder #3

fix: remove ubuntu user (UID 1000 conflict) before creating coder

fix: remove ubuntu user (UID 1000 conflict) before creating coder #3

Workflow file for this run

name: Build workspace images
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_PREFIX: ghcr.io/codewiresh
jobs:
base:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name == 'push'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: base
push: ${{ github.event_name == 'push' }}
tags: |
${{ env.IMAGE_PREFIX }}/workspace-base:latest
${{ env.IMAGE_PREFIX }}/workspace-base:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
language:
needs: base
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
image: [go, node, python, full]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name == 'push'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: ${{ matrix.image }}
push: ${{ github.event_name == 'push' }}
tags: |
${{ env.IMAGE_PREFIX }}/workspace-${{ matrix.image }}:latest
${{ env.IMAGE_PREFIX }}/workspace-${{ matrix.image }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max