From bd859cd0b1debabf21451d942da8a8d323962b24 Mon Sep 17 00:00:00 2001 From: Alexander Hofbauer Date: Mon, 26 Apr 2021 11:34:06 +0200 Subject: [PATCH] Add github action --- .github/workflows/docker-image.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..d17f2af --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,25 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set version + id: version + run: echo ::set-output name=release_version::${GITHUB_REF#refs/*/} + + - name: Build Docker image + run: | + echo Building version ${{ steps.version.outputs.release_version }}... + docker build . --file Dockerfile --tag alehoho/oo-ce-docker-license:${{ steps.version.outputs.release_version }}