Skip to content

Commit d65f231

Browse files
authored
Create docker-image-demo.yml
1 parent 28867c8 commit d65f231

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build the Docker image
18+
run: |
19+
cd nginx-image/
20+
docker build . --file Dockerfile --tag my-image-name:$(date -I)
21+
docker tag my-image-name:$(date -I) ${{ github.event.inputs.docker_username }}/my-image-name:latest

0 commit comments

Comments
 (0)