diff --git a/.github/workflows/test-remote-dev-workflow-go.yml b/.github/workflows/test-remote-dev-workflow-go.yml deleted file mode 100644 index 5e4272f..0000000 --- a/.github/workflows/test-remote-dev-workflow-go.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Test Use of Common Dev Workflow -on: - pull_request: - types: [closed] - branches: [ "main" ] -jobs: - call-common-workflow: - uses: dominant-strategies/quai-cicd/.github/workflows/deploy-dev-common.yml@main - with: - needs_build: true - build_command: "make go-quai" - needs_docker: false - include_chart: false - needs_docs: false - cloud_deploy: false - skip_deploy: true - - secrets: - DOCKER: ${{ secrets.DOCKER }} - GH_PAT: ${{ secrets.GH_PAT }} - KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - DOCKER_BUILD_ARGS: 'BUILD_ENV=quai-dev,LOCAL_GCP_CAPTCHA=${{ secrets.LOCAL_GCP_CAPTCHA }}' diff --git a/.github/workflows/test-remote-dev-workflow.yml b/.github/workflows/test-remote-dev-workflow.yml index 0edca8a..5e4272f 100644 --- a/.github/workflows/test-remote-dev-workflow.yml +++ b/.github/workflows/test-remote-dev-workflow.yml @@ -8,12 +8,15 @@ jobs: uses: dominant-strategies/quai-cicd/.github/workflows/deploy-dev-common.yml@main with: needs_build: true - install_command: "npm ci" + build_command: "make go-quai" + needs_docker: false + include_chart: false + needs_docs: false cloud_deploy: false skip_deploy: true + secrets: DOCKER: ${{ secrets.DOCKER }} GH_PAT: ${{ secrets.GH_PAT }} KUBE_CONFIG: ${{ secrets.KUBECONFIG_LOCAL }} - BUILD_ARGS: 'BUILD_ENV=production' DOCKER_BUILD_ARGS: 'BUILD_ENV=quai-dev,LOCAL_GCP_CAPTCHA=${{ secrets.LOCAL_GCP_CAPTCHA }}' diff --git a/.last_dir b/.last_dir index e082170..4023f20 100644 --- a/.last_dir +++ b/.last_dir @@ -1 +1 @@ -ts +go diff --git a/Dockerfile b/Dockerfile index a9e4746..c41ff3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM node:14 +FROM golang:1.17 WORKDIR /app COPY ./ . -RUN npm install -CMD ["npm", "start"] +RUN go build -o main . + +CMD ["./main"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d1c64a9 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +## simple makefile with make go-quai that just logs the command +go-quai: + @echo "go-quai" diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..3e3abdb --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +v1.0.0-pre.1 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d2dcad4 --- /dev/null +++ b/go.mod @@ -0,0 +1,4 @@ +module sample-go-project + +go 1.17 + diff --git a/go/Makefile b/go/Makefile index da71bb8..d1c64a9 100644 --- a/go/Makefile +++ b/go/Makefile @@ -1,2 +1,3 @@ +## simple makefile with make go-quai that just logs the command go-quai: - echo "making go-quai" \ No newline at end of file + @echo "go-quai" diff --git a/go/VERSION b/go/VERSION new file mode 100644 index 0000000..3e3abdb --- /dev/null +++ b/go/VERSION @@ -0,0 +1 @@ +v1.0.0-pre.1 diff --git a/main.go b/main.go new file mode 100644 index 0000000..5b2b093 --- /dev/null +++ b/main.go @@ -0,0 +1,8 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello from Go!") +} + diff --git a/package.json b/package.json deleted file mode 100644 index 638379b..0000000 --- a/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "sample-ts-project", - "version": "1.0.0", - "scripts": { - "build": "tsc" - }, - "dependencies": {}, - "devDependencies": { - "typescript": "^4.5.2" - } -} - diff --git a/sample.ts b/sample.ts deleted file mode 100644 index ccc4592..0000000 --- a/sample.ts +++ /dev/null @@ -1,2 +0,0 @@ -console.log("Hello from TypeScript"); - diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index bcc1941..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs" - }, - "include": ["*.ts"] -} -