Skip to content

Commit

Permalink
feat: Gitpod docker image (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino authored Jul 18, 2024
1 parent 5a94999 commit 2f466f6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ jobs:
matrix:
version:
- 40
dockerfile:
- dockerfiles/devtools.dockerfile
docker:
- dockerfile: dockerfiles/devtools.dockerfile
image: ghcr.io/ultramarine-linux/ultramarine-devtools
- dockerfile: dockerfiles/gitpod.dockerfile
image: ghcr.io/ultramarine-linux/ultramarine-gitpod

steps:
- name: Checkout
Expand All @@ -178,12 +181,12 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.dockerfile }}
file: ${{ matrix.docker.dockerfile }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/ultramarine-linux/ultramarine-devtools:${{ matrix.version }}
ghcr.io/ultramarine-linux/ultramarine-devtools:latest
${{ matrix.docker.image }}:${{ matrix.version }}
${{ matrix.docker.image }}:latest
build-args: |
RELEASE=${{ matrix.version }}
Expand Down
9 changes: 9 additions & 0 deletions dockerfiles/gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG RELEASE

FROM ghcr.io/ultramarine-linux/ultramarine:${RELEASE}

RUN dnf install -y @development-tools sudo && dnf clean all

RUN useradd -l -u 33333 -G wheel -md /home/gitpod -s /bin/bash -p gitpod gitpod

USER gitpod

0 comments on commit 2f466f6

Please sign in to comment.