Files
test-actions/.gitea/workflows/demo.yaml
Alex Matsuev c457be9dde
All checks were successful
Build and release project / Explore-Gitea-Actions (push) Successful in 29s
Update actions
2025-11-22 19:20:29 +03:00

55 lines
1.4 KiB
YAML

name: Build and release project
run-name: Started by ${{ gitea.actor }}
on:
push:
branches:
- main
jobs:
Explore-Gitea-Actions:
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: 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
/usr/local/go/bin/go build -o ./bin/metrics ./cmd
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Log in to container registry
# uses: docker/login-action@v3
# with:
# registry: sirius.klsh.ru
# username: ${{ secrets.DOCKER_USER }}
# password: ${{ secrets.DOCKER_SECRET }}
# - name: Build and push Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: sirius.klsh.ru/${{ gitea.repository_owner }}/test-app:latest
- name: Job status
run: echo "This job's status is ${{ job.status }}."