Merge pull request #4 from KlimDos/dependabot/pip/src/werkzeug-3.0.6 #41
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 Push Docker image | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
run_script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# Debug | |
- name: Generate semver | |
id: version-generator | |
run: | | |
ARTEFACT_VERSION=$(git describe --long --always | sed -r "s/-(([^-]*-){1}[^-]*)$/.\\1/") | |
echo "ARTEFACT_VERSION=${ARTEFACT_VERSION}" >> $GITHUB_ENV | |
# Debug | |
- name: Print ARTEFACT_VERSION | |
run: echo "ARTEFACT_VERSION is $ARTEFACT_VERSION" | |
- name: Run build script | |
run: bash ./build_manual.sh |