aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml45
-rw-r--r--Makefile.version3
2 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..3d54321
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,45 @@
+
+name: Create and Test Dockerimage for silvio/docker-languagetool
+
+on:
+ push:
+ branches: [ master ]
+
+ workflow_dispatch:
+
+jobs:
+ docker:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Set environment variables
+ run: |
+ make envout >> ${GITHUB_ENV}
+
+ - name: show env debug
+ run: |
+ echo $VERSION
+
+ - name: Prepare system
+ run: |
+ make prepare
+
+ - name: Build Docker image
+ run: |
+ make build
+
+ - name: Run tests
+ run: |
+ make test
+
+ - name: Login to DockerHub
+ if: github.event_name != 'pull_request'
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_PASSWORD }}
+ - name: Make tag
+ run: |
+ make tag
diff --git a/Makefile.version b/Makefile.version
index 3696544..915cb39 100644
--- a/Makefile.version
+++ b/Makefile.version
@@ -1,2 +1,5 @@
VERSION := 5.3
BUILDARG_VERSION := --build-arg VERSION=$(VERSION)
+
+envout:
+ @echo "VERSION=$(VERSION)"