Skip to content

chore: pin action.yml to an image digest instead of :latest #59

chore: pin action.yml to an image digest instead of :latest

chore: pin action.yml to an image digest instead of :latest #59

Workflow file for this run

name: Python Docker Action
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build Docker image
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile
push: false
load: true
tags: my-python-image:latest
- name: Run tests
run: |
docker run --rm my-python-image:latest pytest