Test build container
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s

This commit is contained in:
2025-11-21 21:50:19 +03:00
parent 078ba96490
commit f4469e0e30
3 changed files with 46 additions and 11 deletions

View File

@@ -1,19 +1,45 @@
name: Gitea Actions Demo name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} is testing out Gitea Actions
on: [push] on:
push:
branches:
- main
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - name: Job start
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Install Task utility
uses: go-task/setup-task@v1
- name: Install GoLang v1.25.4
uses: actions/setup-go@v5
with:
go-version: "1.25.4"
cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: Log in to Docker Hub
- name: List files in the repository uses: docker/login-action@v3
run: | with:
ls ${{ gitea.workspace }} username: ${{ secrets.DOCKER_USER }}
- run: echo "🍏 This job's status is ${{ job.status }}." 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/sirius/test-app:latest
- name: Job status
run: echo "This job's status is ${{ job.status }}."

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM alpine:3.22
WORKDIR /app
COPY ./bin/metrics .
RUN chmod +x metrics
CMD ["/app/metrics"]

BIN
bin/metrics Executable file

Binary file not shown.