Skip to content

Commit 8160301

Browse files
chore(deps): update python docker tag to v3.13 (#7)
* chore(deps): update python docker tag to v3.13 * chore: build image on PR * update docker build job * fix the syntax error * login to ghcr --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Meysam Azad <meysam@developer-friendly.blog>
1 parent 08088e8 commit 8160301

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-image:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
- name: Login to GitHub Container Registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- id: meta
28+
name: Docker metadata
29+
uses: docker/metadata-action@v5
30+
with:
31+
images: ghcr.io/${{ github.repository }}
32+
- name: Build image
33+
uses: docker/build-push-action@v6
34+
with:
35+
cache-from: type=gha
36+
cache-to: type=gha,mode=max
37+
context: .
38+
push: true
39+
platforms: linux/amd64,linux/arm64
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-alpine
1+
FROM python:3.13-alpine
22

33
LABEL author="Meysam Azad <meysam@licenseware.io>"
44

0 commit comments

Comments
 (0)