Skip to content

[Snyk] Security upgrade python from 3.12.1-slim to 3.13.0b4-slim #462

[Snyk] Security upgrade python from 3.12.1-slim to 3.13.0b4-slim

[Snyk] Security upgrade python from 3.12.1-slim to 3.13.0b4-slim #462

Workflow file for this run

name: Publish Docker images
on:
push:
branches:
- 'master'
- 'develop'
- 'feature/*'
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-20.04
container: python:3.11
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Dependencies
run: docker/install_deps --test
-
name: Build
run: make build
-
name: Test
run: make test
build:
runs-on: ubuntu-20.04
needs: test
env:
repo: "govpf/openfisca-pf"
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Set up Docker Buildx
uses: docker/[email protected]
-
name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push (master)
uses: docker/[email protected]
if: github.ref == 'refs/heads/master'
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64
pull: true
push: true
tags: |
${{ env.repo }}:latest
-
name: Extract tag name
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: echo "tag=${GITHUB_REF/refs\/tags\//}" >> ${GITHUB_OUTPUT}
id: extract_tag
-
name: Build and push (tags)
uses: docker/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64
pull: true
push: true
tags: |
${{ env.repo }}:${{ steps.extract_tag.outputs.tag }}
- name: Update repo description
uses: peter-evans/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: "${{ env.repo }}"