forked from luisweir/streaming-client
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 901 Bytes
/
ci-ohip.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI Pipeline for ohip-shovel
on:
push:
branches:
- "main"
paths:
- ".github/workflows/ci-ohip.yml"
- "src/**"
env:
repo: ohip-shovel
namespace: quicklookup
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set IMAGE_TAG as env
run: |
IMAGE_TAG=$(git rev-parse --short=7 ${{ github.sha }})
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: Dockerfile
tags: quicklookup/ohip-shovel:${{ env.IMAGE_TAG }}