Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Purpose #2

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
30 changes: 30 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Example Workflow - Testing
on: [push]
# Manual run by SK
# workflow_dispatch:
# inputs:
# colour:
# type: choice
# description: "Pick a colour"
# options:
# - Red
#- Green
#- Blue
#- Purple

jobs:
ExampleJob:
runs-on: KaurSup_laptop
defaults:
run:
shell: bash

steps:
- name: Checkout this repository
uses: actions/checkout@v2

- name: Do some work on the repo
run: |
echo "Run some bash code here on laptop"
ls -al
echo "You chose ${{ github.event.inputs.colour }}"