fixed import #585
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: ShvatkaBotBuild | |
on: | |
push: | |
branches: [ master ] | |
tags: ["*.*.*"] | |
jobs: | |
lint-and-test: | |
uses: ./.github/workflows/test.yml | |
build: | |
needs: lint-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get current date | |
id: date | |
run: | | |
echo "BUILD_AT=$(date +'%Y-%m-%dT%H:%M:%S%z')" >> "$GITHUB_OUTPUT" | |
echo "VCS_SHA=${GITHUB_SHA}" >> "$GITHUB_OUTPUT" | |
- uses: mr-smithers-excellent/[email protected] | |
with: | |
image: bomzheg/shvatka | |
addLatest: true | |
registry: docker.io | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
buildArgs: "BUILD_AT=${{steps.date.outputs.BUILD_AT}},VCS_SHA=${{steps.date.outputs.VCS_SHA}}" |