From afc89d8fbe1b6b56647fea5790f9c956df6c8cf8 Mon Sep 17 00:00:00 2001 From: wallabhadasbhumika Date: Thu, 26 Dec 2024 01:13:38 +0530 Subject: [PATCH] ururu --- .gitea/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..0bba54d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,32 @@ +version: "1" +name: "Fetch and Run Alpine Docker Image" + +on: + push: # This will trigger the job on each push (can be modified to suit) + branches: + - master + +jobs: + fetch-alpine: + runs-on: ubuntu-latest # The runner environment + steps: + - name: "Set up Docker" + run: | + # Ensure Docker is installed (may not be needed if pre-installed) + docker --version || sudo apt-get update && sudo apt-get install -y docker.io + + - name: "Fetch and Run Alpine" + run: | + for i in {1..6}; do + echo "Iteration $i: Pulling and running Alpine..." + + # Pull the Alpine image + docker pull alpine:latest + + # Run the Alpine image (this will just run the default command, which is 'sh') + docker run --rm alpine:latest echo "Hello from Alpine!" + + # Wait for 10 seconds + sleep 10 + done +