Skip to content

Commit 185823c

Browse files
committed
feat: Add Python3.11 on opensuse/leap:15.5
0 parents  commit 185823c

File tree

4 files changed

+114
-0
lines changed

4 files changed

+114
-0
lines changed

.autorc

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"plugins": [
3+
"git-tag"
4+
],
5+
"owner": "seraftech",
6+
"repo": "python-311-opensuse",
7+
"name": "Seraf's Butler",
8+
"email": "[email protected]",
9+
"noDefaultLabels": true,
10+
"labels": [
11+
{
12+
"name": "major",
13+
"changelogTitle": "💥 Breaking Change",
14+
"description": "Increment the major version when merged",
15+
"releaseType": "major",
16+
"color": "#C5000B"
17+
},
18+
{
19+
"name": "minor",
20+
"changelogTitle": "🚀 Enhancement",
21+
"description": "Increment the minor version when merged",
22+
"releaseType": "minor",
23+
"color": "#F1A60E"
24+
},
25+
{
26+
"name": "patch",
27+
"changelogTitle": "🐛 Bug Fix",
28+
"description": "Increment the patch version when merged",
29+
"releaseType": "patch",
30+
"color": "#870048"
31+
},
32+
{
33+
"name": "skip-release",
34+
"description": "Preserve the current version when merged",
35+
"releaseType": "skip",
36+
"color": "#bf5416"
37+
}
38+
]
39+
}

.github/workflows/publish.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# mvp: https://github.com/mariadb-corporation/skysql-api-go/blob/main/.github/workflows/publish.yml
2+
name: Publish
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
workflow_dispatch:
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: ${{ github.repository }}
12+
13+
jobs:
14+
release:
15+
name: Publish new release
16+
if: github.ref == 'refs/heads/master'
17+
timeout-minutes: 5
18+
runs-on: ubuntu-latest
19+
outputs:
20+
version: ${{ steps.version.outputs.version }}
21+
steps:
22+
- name: Check Out Repo
23+
uses: actions/checkout@v2
24+
with: # https://stackoverflow.com/a/65081720
25+
ref: ${{ github.event.workflow_run.head_branch }}
26+
fetch-depth: "0"
27+
- name: Install Auto
28+
run : npm i -g auto @auto-it/upload-assets @auto-it/git-tag @auto-it/pr-body-labels @auto-it/exec
29+
- name: Configure git
30+
run: |
31+
git config --global user.email "[email protected]"
32+
git config --global user.name "seraf-ci-bot"
33+
- name: Publish new version
34+
run: GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" auto shipit
35+
- id: version
36+
name: Output new version
37+
run: echo "::set-output name=version::$(git describe --tags)"
38+
39+
docker-push:
40+
needs: release
41+
runs-on: ubuntu-latest
42+
43+
permissions:
44+
contents: read
45+
packages: write
46+
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v4
50+
51+
- name: Log in to the Container registry
52+
uses: docker/login-action@v2
53+
with:
54+
registry: ${{ env.REGISTRY }}
55+
username: ${{ github.actor }}
56+
password: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Extract metadata (tags, labels) for Docker
59+
id: meta
60+
uses: docker/metadata-action@v4
61+
with:
62+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
63+
64+
- name: Docker Build and Push Backend
65+
uses: docker/build-push-action@v4
66+
with:
67+
push: true
68+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.release.outputs.version }}
69+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM opensuse/leap:15.5
2+
3+
RUN zypper --non-interactive si -d python311 python311-pip \
4+
&& zypper --non-interactive in python311 \
5+
&& python3.11 -m ensurepip

0 commit comments

Comments
 (0)