diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..eac633f6 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -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) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml new file mode 100644 index 00000000..b1a77563 --- /dev/null +++ b/.github/workflows/example.yml @@ -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 }}"