Skip to content

Feat/upgrade packages #5

Feat/upgrade packages

Feat/upgrade packages #5

Workflow file for this run

name: Build Python Bookworm Devcontainer Image
on:
push:
branches:
- main
paths:
- 'devcontainer_images/src/python/Dockerfile'
- '.github/workflows/python_ci.yml'
pull_request:
paths:
- 'devcontainer_images/src/python/Dockerfile'
- '.github/workflows/python_ci.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Login to DockerHub
uses: docker/[email protected]
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/[email protected]
with:
platforms: linux/amd64
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
with:
version: latest
driver-opts: network=host
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: hadirgax/devcontainer-python
tags: |
type=ref,event=branch
- name: build python
uses: docker/[email protected]
with:
context: ./devcontainer_images/src/python
builder: ${{ steps.buildx.outputs.name }}
file: ./devcontainer_images/src/python/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') }}