mirror of
https://github.com/bendtherules/hello-github-actions.git
synced 2026-08-18 13:53:58 +00:00
Merge pull request #2 from bendtherules/add-dockerfile
Add workflow on push
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
name: A workflow for my Hello World file
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildABC:
|
||||||
|
name: Hello world action
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: ./action-a
|
||||||
|
with:
|
||||||
|
MY_NAME: "Abhas bendtherules"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
FROM debian:9.5-slim
|
||||||
|
|
||||||
|
ADD entrypoint.sh /entrypoint.sh
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
@@ -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"
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh -l
|
||||||
|
|
||||||
|
sh -c "echo Hello world my name is $INPUT_MY_NAME"
|
||||||
Reference in New Issue
Block a user