Skip to content

Update workflow.yml #88

Update workflow.yml

Update workflow.yml #88

Workflow file for this run

name: Build schedule.kpi.ua
on:
push:
branches:
- master
- staging
- KB-11-Implement-a-new-design-that-meets-brand-book-requirements
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Docker Login
uses: docker/login-action@v1.10.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
logout: true
- name: Checkout
uses: actions/checkout@v2.4.0
with:
repository: ${{ github.repository }}
- name: Build Docker image
run: |
now=$(date +%Y%m%d%H%M%S)
tag1="kpiua/schedule.kpi.ua:$now"
tag2="kpiua/schedule.kpi.ua:latest"
docker build ./ --file ./Dockerfile --tag $tag1 --tag $tag2
docker push $tag1
docker push $tag2