Skip to content

build(deps-dev): bump ruff from 0.8.3 to 0.9.2 #15

build(deps-dev): bump ruff from 0.8.3 to 0.9.2

build(deps-dev): bump ruff from 0.8.3 to 0.9.2 #15

Workflow file for this run

name: BuildImage
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
id: checkout
uses: actions/checkout@v4
- name: Get Version
id: version
run: |
echo "TAG_VERSION=$(cat pyproject.toml | grep '^version.*$' | sed 's/version = //' | tr -d '\"' )" >> $GITHUB_ENV
- name: 'Build Image'
id: build
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/sbl-filing-api:latest -f Dockerfile .
docker tag ghcr.io/cfpb/regtech/sbl/sbl-filing-api:latest ghcr.io/cfpb/regtech/sbl/sbl-filing-api:${{env.TAG_VERSION}}
docker tag ghcr.io/cfpb/regtech/sbl/sbl-filing-api:latest ghcr.io/cfpb/regtech/sbl/sbl-filing-api:${{env.TAG_VERSION}}_${{github.run_number}}.${{github.run_attempt}}
- name: 'Login to GitHub Container Registry'
id: login
uses: docker/login-action@v3
if: github.ref == 'refs/heads/main' && steps.build.conclusion == 'success'
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Publish Image'
id: publish
if: github.ref == 'refs/heads/main' && steps.login.conclusion == 'success'
run: |
docker push ghcr.io/cfpb/regtech/sbl/sbl-filing-api --all-tags