Skip to content

Commit

Permalink
Merge pull request #2 from MarcelHeek/first-action
Browse files Browse the repository at this point in the history
Create Dockerfile
  • Loading branch information
MarcelHeek committed Sep 17, 2021
2 parents 35f4883 + 9e88564 commit 7b3d699
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: A workflow for my Hello World file
on: push
jobs:
build:
name: Hello world action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./action-a
with:
MY_NAME: "Mona"
5 changes: 5 additions & 0 deletions action-a/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM debian:9.5-slim

ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
17 changes: 17 additions & 0 deletions action-a/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Hello Actions"
description: "Greet someone"
author: "octocat@github.com"

inputs:
MY_NAME:
description: "Who to greet"
required: true
default: "World"

runs:
using: "docker"
image: "Dockerfile"

branding:
icon: "mic"
color: "purple"
3 changes: 3 additions & 0 deletions action-a/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh -l

sh -c "echo Hello world my name is $INPUT_MY_NAME"

0 comments on commit 7b3d699

Please sign in to comment.