From 5d5dc1878e079959cdec95c82618aa63146bad46 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Thu, 5 Aug 2021 23:12:50 +0300 Subject: [PATCH] Add Github Action for building Dione --- .github/workflows/dione.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dione.yml diff --git a/.github/workflows/dione.yml b/.github/workflows/dione.yml new file mode 100644 index 0000000..cee9ed4 --- /dev/null +++ b/.github/workflows/dione.yml @@ -0,0 +1,17 @@ +name: Dione + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Get Commit Hash + id: get_commit_hash + run: echo ::set-output name=COMMIT_HASH::$(git rev-parse --short "$GITHUB_SHA") + - name: build image + run: docker build -f ./docker/Dockerfile -t "dione:${{ steps.get_commit_hash.outputs.COMMIT_HASH }}" . \ No newline at end of file