2
0

Demo workflow
All checks were successful
Gitea actions demo. / build (push) Successful in 8s
Gitea actions demo. / run-app (push) Successful in 4s
Gitea actions demo. / cleanup (push) Successful in 3s

This commit is contained in:
shode 2025-01-05 19:30:05 +03:00
commit 1d460c7baf
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,27 @@
name: Gitea actions demo.
on: [push]
jobs:
build:
image: docker:latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build Docker Image
run: |
docker build -t hello-world-image .
run-app:
image: docker:latest
steps:
- name: Run Docker Container
run: |
docker run --name hello-world-container --rm hello-world-image
cleanup:
image: docker:latest
steps:
- name: Remove Docker Image
run: |
docker rmi -f hello-world-image

3
dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM alpine:latest
CMD ["echo", "Hello, World!"]