Skip to content

Build New Python Docker Image #18

Build New Python Docker Image

Build New Python Docker Image #18

Workflow file for this run

name: Manual | Build and Push Docker Image - docker/python
run-name: "Build New Python Docker Image"
on:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/python
push: true
secrets: |
PAT_TOKEN=${{ secrets.PAT_TOKEN }}
tags: |
ghcr.io/${{ github.repository }}/python:latest
ghcr.io/${{ github.repository }}/python:${{ github.sha }}