2
0
gitea-actions-demo/.gitea/workflows/gitea-ci.yaml
shode 1d460c7baf
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
Demo workflow
2025-01-05 19:30:05 +03:00

27 lines
652 B
YAML

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