From 1d460c7baf52a94ac9cac5ae0b9bf129c59c8421 Mon Sep 17 00:00:00 2001 From: shode Date: Sun, 5 Jan 2025 19:30:05 +0300 Subject: [PATCH] Demo workflow --- .gitea/workflows/gitea-ci.yaml | 27 +++++++++++++++++++++++++++ dockerfile | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 .gitea/workflows/gitea-ci.yaml create mode 100644 dockerfile diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml new file mode 100644 index 0000000..b8188c6 --- /dev/null +++ b/.gitea/workflows/gitea-ci.yaml @@ -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 \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..e1e77c9 --- /dev/null +++ b/dockerfile @@ -0,0 +1,3 @@ +FROM alpine:latest + +CMD ["echo", "Hello, World!"] \ No newline at end of file