2
0
gitea-actions-demo/.gitea/workflows/gitea-ci.yaml
shode aa4dc2326f
All checks were successful
Gitea actions demo. / build (push) Successful in 48s
Gitea actions demo. / run-app (push) Successful in 2s
Gitea actions demo. / cleanup (push) Successful in 2s
ubuntu-latest
2025-02-06 23:15:35 +01:00

27 lines
652 B
YAML

name: Gitea actions demo.
on: [push]
jobs:
build:
image: ubuntu-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: ubuntu-latest
steps:
- name: Run Docker Container
run: |
docker run --name hello-world-container --rm hello-world-image
cleanup:
image: ubuntu-latest
steps:
- name: Remove Docker Image
run: |
docker rmi -f hello-world-image