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