Merge pull request #198 from kpi-ua/tabs-update #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build intellect.kpi.ua | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
logout: true | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
repository: ${{ github.repository }} | |
- name: Build Docker image | |
run: | | |
now=$(date +%Y%m%d%H%M%S) | |
tag1="kpiua/intellect.kpi.ua:$now" | |
tag2="kpiua/intellect.kpi.ua:latest" | |
docker build ./ --file ./Dockerfile --tag $tag1 --tag $tag2 | |
docker push $tag1 | |
docker push $tag2 |