Skip to content

Commit

Permalink
test go dev common
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Feb 15, 2024
1 parent 9e3cd1c commit 0c760ff
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 51 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/test-remote-dev-workflow-go.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/test-remote-dev-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
2 changes: 1 addition & 1 deletion .last_dir
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ts
go
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## simple makefile with make go-quai that just logs the command
go-quai:
@echo "go-quai"
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.0.0-pre.1
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module sample-go-project

go 1.17

3 changes: 2 additions & 1 deletion go/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
## simple makefile with make go-quai that just logs the command
go-quai:
echo "making go-quai"
@echo "go-quai"
1 change: 1 addition & 0 deletions go/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.0.0-pre.1
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package main

import "fmt"

func main() {
fmt.Println("Hello from Go!")
}

12 changes: 0 additions & 12 deletions package.json

This file was deleted.

2 changes: 0 additions & 2 deletions sample.ts

This file was deleted.

8 changes: 0 additions & 8 deletions tsconfig.json

This file was deleted.

0 comments on commit 0c760ff

Please sign in to comment.