Skip to content

⬆ Bump docker/build-push-action from 5.3.0 to 6.6.1 #44

⬆ Bump docker/build-push-action from 5.3.0 to 6.6.1

⬆ Bump docker/build-push-action from 5.3.0 to 6.6.1 #44

Workflow file for this run

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 }}