This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
Create dependabot.yml #37
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 directory.kpi.ua | |
on: | |
push: | |
branches: | |
- master | |
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="kpilab/directory-kpi-ua:$now" | |
tag2="kpilab/directory-kpi-ua:latest" | |
docker build ./ --file ./.dockerfile --tag $tag1 --tag $tag2 | |
docker push $tag1 | |
docker push $tag2 |