mirror of
https://github.com/sstent/containers.git
synced 2026-01-25 16:41:51 +00:00
add ubuntu with python3
This commit is contained in:
41
.github/workflows/ubuntu-python3.yml
vendored
Normal file
41
.github/workflows/ubuntu-python3.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'ubuntu-python3/*'
|
||||||
|
- '.github/workflows/ubuntu-python3.yml'
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
-
|
||||||
|
name: Log into registry
|
||||||
|
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: rsync/
|
||||||
|
platforms: linux/arm/v7, Linux/amd64, linux/arm64/v8
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/sstent/ubuntu-python3:latest
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
4
ubuntu-python3/Dockerfile
Normal file
4
ubuntu-python3/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM ubuntu:23.10
|
||||||
|
|
||||||
|
RUN apt-get update; apt install python3 python3-pip
|
||||||
|
ENTRYPOINT ["/usr/bin/bash"]
|
||||||
Reference in New Issue
Block a user