From 0eace325f462325490d2183c979d83c34ab64956 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 4 Mar 2022 10:20:57 +0200 Subject: [PATCH] Create docker-image.yml Builds automatically `15 * 1,15 * *` (At minute 15 on day-of-month 1 and 15.). --- .github/workflows/docker-image.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..ef89176 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,21 @@ +name: Docker Image CI + +on: + workflow_dispatch: + schedule: + - cron: '15 * 1,15 * *' # Runs only on default branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag php-imagick:$(date +%s)