Skip to content

Commit f79c3c7

Browse files
authored
Create test.yml
0 parents  commit f79c3c7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker Pull Example
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
docker-pull:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Step 1: Checkout the repository code (if needed)
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
# Step 2: Set up Docker (optional, since it's pre-installed on GitHub-hosted runners)
18+
- name: Set up Docker
19+
uses: docker/setup-buildx-action@v2
20+
21+
# Step 3: Pull a Docker image from Docker Hub (or another registry)
22+
- name: Docker pull
23+
run: docker pull google/alloydbomni:15.5.3
24+
25+
# Optionally, you can also run other Docker commands, like docker run
26+
# - name: Docker run
27+
# run: docker run <your-image>:<tag>

0 commit comments

Comments
 (0)