-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publish github action and bump python version in Dockerfile
- Loading branch information
1 parent
faa8bd4
commit 708cb9e
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v1.*' | ||
- 'gh-action-test-*' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: "{{defaultContext}}" | ||
file: ./Dockerfile | ||
push: true | ||
tags: ghcr.io/${{github.repository}}:${{github.ref_name}} | ||
labels: org.opencontainers.image.source=https://github.com/${{github.repository}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.6-alpine3.7 | ||
FROM python:3.12-alpine3.19 | ||
|
||
COPY . /python | ||
WORKDIR /python | ||
|