⬆ Bump docker/build-push-action from 5.3.0 to 6.6.0 #43
Workflow file for this run
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install toml-cli | |
run: pip install toml | |
- name: Get version from pyproject.toml | |
id: get_version | |
run: echo "VERSION=$(python backend/read_version.py)" >> $GITHUB_ENV | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERACC }} | |
password: ${{ secrets.DOCKERPWD }} | |
- name: Build and push Docker images | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: ${{ secrets.REGISTRY }}:latest, ${{ secrets.REGISTRY }}:${{ env.VERSION }} | |