-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: build container - code + cli | ||
run-name: building container - code + cli | ||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
permissions: | ||
contents: read | ||
packages: write | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-24.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Run podman build - code-cli | ||
run: podman build -t ghcr.io/gbraad-devenv/fedora/code-cli:41 -f containers/Containerfile-code-cli . | ||
- name: Push image to ghcr.io - code-cli | ||
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/code-cli:41 | ||
- name: Run podman build - code | ||
run: podman build -t ghcr.io/gbraad-devenv/fedora/code:41 -f containers/Containerfile-code . | ||
- name: Push image to ghcr.io - code | ||
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/code:41 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: tailscale-code | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
code-test: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Run system container with `podman` | ||
run: | | ||
podman run -d --name code ghcr.io/gbraad-devenv/fedora/code:41 | ||
- name: Tailscale setup (root) | ||
run: | | ||
podman exec code systemctl enable --now tailscaled | ||
until podman exec code tailscale up --auth-key ${TAILSCALE_AUTHKEY} | ||
do | ||
sleep 0.1 | ||
done | ||
podman exec code tailscale set --ssh | ||
podman exec code tailscale set --hostname github-${HOSTNAME} | ||
env: | ||
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}} | ||
- name: Hang around | ||
run: | | ||
IP=`podman exec code tailscale ip -4` | ||
podman exec code code serve-web --without-connection-token | ||
echo "Open in your web browser: https://${IP}:8000" | ||
sleep infinity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG BASE_VERSION="41" | ||
|
||
FROM ghcr.io/gbraad-devenv/fedora/systemd:${BASE_VERSION} | ||
|
||
LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora" | ||
|
||
RUN curl -fL https://code.visualstudio.com/sha/download?build=stable\&os=linux-rpm-x64 -o code.rpm \ | ||
&& dnf install -y code.rpm \ | ||
&& rm -f code.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG BASE_VERSION="41" | ||
|
||
FROM ghcr.io/gbraad-devenv/fedora/dotfiles:${BASE_VERSION} | ||
|
||
LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora" | ||
|
||
RUN cd /tmp \ | ||
&& curl -fL https://code.visualstudio.com/sha/download?build=stable\&os=cli-alpine-x64 -o code-cli.tar.gz \ | ||
&& tar zxvf code-cli.tar.gz \ | ||
&& mv code ~/.local/bin/ \ | ||
&& rm -f code-cli.tar.gz | ||
|
||
ENTRYPOINT [ "/home/gbraad/.local/bin/code" ] |