Skip to content

Bump actions/setup-python from 6.1.0 to 6.2.0 (#616) #2549

Bump actions/setup-python from 6.1.0 to 6.2.0 (#616)

Bump actions/setup-python from 6.1.0 to 6.2.0 (#616) #2549

Workflow file for this run

name: Build Docker Image
on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- main
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-docker:
permissions:
packages: write
pull-requests: read
issues: read
repository-projects: read
runs-on: ubuntu-latest
if:
github.event_name == 'push' || github.event_name == 'workflow_dispatch' ||
( github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository )
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- name: Log into the Container registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
with:
registry: ${{ env.REGISTRY }}
username: token
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for the Jupyter Docker image
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push the Jupyter Docker image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: Dockerfile
push: ${{ github.actor != 'dependabot[bot]' && github.actor != 'pre-commit-ci[bot]' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}