wallabhadasbhumika 3c3022393a
Some checks failed
Fetch and Run Hello World Docker Image / fetch-hello-world (push) Failing after 1s
remove
2024-12-26 01:25:02 +05:30

22 lines
543 B
YAML

name: "Fetch and Run Hello World Docker Image"
on:
push:
branches:
- main # Change to 'master' if that is your default branch
jobs:
fetch-hello-world:
runs-on: ubuntu-latest
steps:
- name: "Set up Docker"
run: |
docker --version || sudo apt-get update && sudo apt-get install -y docker.io
- name: "Pull and Run Hello World"
run: |
echo "Pulling and running Hello World Docker image..."
docker pull hello-world
# Run the Hello World image