dione/.github/workflows/build.yml

17 lines
436 B
YAML
Raw Normal View History

2021-08-05 20:25:53 +00:00
name: build
2021-08-05 20:12:50 +00:00
on:
push:
branches:
- master
jobs:
2021-08-05 20:13:58 +00:00
build:
2021-08-05 20:12:50 +00:00
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 }}" .