Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 53caf2fb84 | |||
| 6ba07470c5 | |||
| 87fc6e1eca | |||
| ca873908fb | |||
| c457be9dde | |||
| e754eda777 | |||
| d9cba7032c | |||
| c46f887a5a | |||
| 7f3e9809ef | |||
| 9eec5d87a9 | |||
| 4c8b8fa50f | |||
| e223ba0458 | |||
| fe166aff94 |
@@ -1,8 +1,8 @@
|
|||||||
name: Show context properties
|
name: Show context properties
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- context
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dump_contexts_to_log:
|
dump_contexts_to_log:
|
||||||
|
|||||||
@@ -7,23 +7,30 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: golang
|
||||||
steps:
|
steps:
|
||||||
- name: Job start
|
- name: Job start
|
||||||
run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
|
|
||||||
- name: Install GoLang v1.25.4
|
# - name: Install GoLang v1.25.4
|
||||||
uses: actions/setup-go@v6
|
# uses: actions/setup-go@v6
|
||||||
with:
|
# with:
|
||||||
go-version: "1.25.4"
|
# go-version: "1.25.4"
|
||||||
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
# - name: Golang linter
|
||||||
|
# uses: actions/golangci-lint-action@v9
|
||||||
|
|
||||||
- name: Build and test application
|
- name: Build and test application
|
||||||
|
env:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
|
CGO_ENABLED: 0
|
||||||
run: |
|
run: |
|
||||||
mkdir bin
|
mkdir bin
|
||||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ./bin/metrics ./cmd
|
go build -o ./bin/metrics ./cmd
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
bin
|
bin
|
||||||
.env
|
.env
|
||||||
|
runner.Dockerfile
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ func metricsHandler(w http.ResponseWriter, req *http.Request) {
|
|||||||
|
|
||||||
// helloHandler ...
|
// helloHandler ...
|
||||||
func helloHandler(w http.ResponseWriter, req *http.Request) {
|
func helloHandler(w http.ResponseWriter, req *http.Request) {
|
||||||
w.Write([]byte("Test /hello location. hjdklfhskfhsdh"))
|
w.Write([]byte("Test /hello location."))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Metrics ...
|
// Metrics ...
|
||||||
|
|||||||
Reference in New Issue
Block a user