-
-
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
5 changed files
with
104 additions
and
4 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,24 @@ | ||
name: build container - coder | ||
run-name: building container - coder | ||
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 - coder | ||
run: podman build -t ghcr.io/gbraad-devenv/fedora/coder:41 -f containers/Containerfile-coder . | ||
- name: Push image to ghcr.io - coder | ||
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/coder: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,24 @@ | ||
name: build container - rdeskop | ||
run-name: building container - rdesktop | ||
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 - rdesktop | ||
run: podman build -t ghcr.io/gbraad-devenv/fedora/rdesktop:41 -f containers/Containerfile-rdesktop . | ||
- name: Push image to ghcr.io - rdesktop | ||
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/rdesktop: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,24 @@ | ||
name: build container - toolbox | ||
run-name: building container - toolbox | ||
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 - toolbox | ||
run: podman build -t ghcr.io/gbraad-devenv/fedora/toolbox:41 -f containers/Containerfile-toolbox . | ||
- name: Push image to ghcr.io - toolbox | ||
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/toolbox: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
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,32 @@ | ||
name: tailscale-coder | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
coder-test: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Run system container with `podman` | ||
run: | | ||
podman run -d --name coder ghcr.io/gbraad-devenv/fedora/coder:41 | ||
- name: Tailscale setup (root) | ||
run: | | ||
until podman exec coder tailscale up --auth-key ${TAILSCALE_AUTHKEY} | ||
do | ||
sleep 0.1 | ||
done | ||
podman exec coder tailscale set --ssh | ||
podman exec coder tailscale set --hostname github-${HOSTNAME} | ||
env: | ||
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}} | ||
- name: Hang around | ||
run: | | ||
until podman exec coder systemctl is-active code-server@gbraad | ||
do | ||
sleep 1 | ||
done | ||
IP=`podman exec coder tailscale ip -4` | ||
echo "Open in your web browser: https://${IP}:8080" | ||
podman exec coder cat ~gbraad/.config/code-server/config.yaml | ||
sleep infinity |