Skip to content

Commit cfa4a79

Browse files
committed
0 parents  commit cfa4a79

File tree

7 files changed

+508
-0
lines changed

7 files changed

+508
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[Makefile]
11+
indent_style = tab

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build docker image
2+
3+
permissions:
4+
contents: read
5+
6+
on: [push]
7+
8+
jobs:
9+
build-image:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
max-parallel: 2
14+
matrix:
15+
platform: ["linux/386", "linux/amd64", "linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/ppc64le", "linux/s390x"]
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
# https://github.com/docker/setup-qemu-action
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v2
22+
# https://github.com/docker/setup-buildx-action
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v2
25+
- name: Build action image
26+
run: make docker-build
27+
env:
28+
DOCKER_BUILDKIT: 1
29+
PLATFORM: ${{ matrix.platform }}

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Docker image
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
push_to_registry:
12+
name: Push Docker image to Docker hub
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: Build Docker images
16+
17+
steps:
18+
- name: Check out the repository
19+
uses: actions/checkout@v3
20+
- name: Login to DockerHub
21+
uses: docker/login-action@v2
22+
with:
23+
registry: docker.io
24+
username: ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
25+
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
26+
# https://github.com/docker/setup-qemu-action
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v2
29+
# https://github.com/docker/setup-buildx-action
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v2
32+
- name: Build and push image
33+
run: make docker-build
34+
env:
35+
DOCKER_BUILDKIT: 1
36+
PLATFORM: "linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x"
37+
IMAGE_TAG: "docker.io/botsudo/docker-rustpython:latest"
38+
ACTION: push

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy