Skip to content

Commit e0610d0

Browse files
committed
try new main.yml
Signed-off-by: Dhruva Gole <goledhruva@gmail.com>
1 parent 68c892f commit e0610d0

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
on: [push]
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
28

39
jobs:
4-
hello_world_job:
10+
11+
build:
12+
513
runs-on: ubuntu-latest
6-
name: A job to say hello
7-
steps:
8-
- name: Hello world action step
9-
id: hello
10-
uses: actions/arduino-core-testing
11-
with:
12-
who-to-greet: 'Mona the Octocat'
13-
# Use the output from the `hello` step
14-
- name: Get the output time
15-
run: echo "The time was "
1614

15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Build the Docker image
18+
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

0 commit comments

Comments
 (0)