suggestions - round to one decimal #245
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 and Publish "slackbot" docker image | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
branches: ["master"] | |
permissions: | |
contents: read | |
jobs: | |
files-changed: | |
name: slackbot | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 3 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
filters: | | |
infra: | |
- 'slackbot/**' | |
# run only if some file in 'infra' folder was changed | |
- if: steps.changes.outputs.infra == 'true' | |
run: docker build -t "slackbot:bolt" slackbot | |
- if: steps.changes.outputs.infra == 'true' | |
env: | |
CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }} | |
REPO_TOKEN: ${{ secrets.REPO_TOKEN }} | |
run: | | |
#TODO: do not hard code project & location | |
echo $CREDENTIALS > /tmp/cred.json | |
cat /tmp/cred.json | docker login -u _json_key --password-stdin https://us-east4-docker.pkg.dev/development-380917/docker-repository | |
docker tag slackbot:bolt us-east4-docker.pkg.dev/development-380917/docker-repository/slackbot | |
docker push us-east4-docker.pkg.dev/development-380917/docker-repository/slackbot |