This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,15 +31,18 @@ jobs:
3131 - name : Checkout repository
3232 uses : actions/checkout@v3
3333
34+ - name : Get git tag information
35+ uses : auguwu/git-tag-action@master
36+ id : tag
37+
3438 - name : Setup Docker Buildx
3539 uses : docker/setup-buildx-action@v2
3640
3741 - name : Login into GitHub Container Registry
3842 uses : docker/login-action@v2
3943 with :
40- registry : registry.floofy.dev
41- username : august
42- password : ${{ secrets.REGISTRY_PASSWORD }}
44+ username : auguwu
45+ password : ${{ secrets.DOCKER_HUB_PASSWORD }}
4346
4447 - name : Build and push
4548 uses : docker/build-push-action@v3
4851 file : ./Dockerfile
4952 platforms : linux/amd64
5053 push : true
51- tags : registry.floofy.dev/noelware/ charted/ coder:latest
54+ tags : auguwu/ charted- coder:${{steps.outputs.tag.version}}
Original file line number Diff line number Diff line change @@ -42,9 +42,15 @@ data "coder_workspace" "me" {
4242}
4343
4444resource "coder_agent" "main" {
45- arch = " amd64"
46- dir = var. dir
47- os = " linux"
45+ arch = " amd64"
46+ dir = var. dir
47+ os = " linux"
48+ shutdown_script = <<- EOF
49+ #!/bin/bash
50+
51+ # Shutdown Docker
52+ sudo systemctl stop docker
53+ EOF
4854
4955 startup_script = <<- EOF
5056 #!/bin/bash
@@ -57,9 +63,8 @@ resource "coder_agent" "main" {
5763 sudo mkdir -p /etc/apt/keyrings
5864 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
5965
60- sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-buildx-plugin
66+ sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin
6167 sudo systemctl enable --now docker
62-
6368 sudo usermod -aG docker $USER
6469
6570 # Now, let's enable dotfiles
@@ -91,8 +96,7 @@ resource "kubernetes_pod" "charted-server" {
9196 name = " charted-server"
9297
9398 labels = {
94- " k8s.noelware.cloud/component" = " cloud" ,
95- " k8s.noelware.cloud/template" = " charted-dev/coder-templates"
99+ " k8s.noelware.cloud/component" = " cloud"
96100 }
97101 }
98102
Original file line number Diff line number Diff line change @@ -51,6 +51,6 @@ variable "dir" {
5151
5252variable "docker_image" {
5353 description = " Docker image to use to provision the Kubernetes pod"
54- default = " registry.floofy.dev/noelware/charted/ coder:latest "
54+ default = " auguwu/ coder-charted:2022.12.12 "
5555 type = string
5656}
You can’t perform that action at this time.
0 commit comments