Skip to content

Commit 9d1df3d

Browse files
authored
Merge pull request #2 from OpenTechIL/develop
finlieze 1
2 parents cfafd72 + cd11449 commit 9d1df3d

3 files changed

Lines changed: 84 additions & 9 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and Push to GHCR
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # Required to create the Git Tag
13+
packages: write # Required to push to GHCR
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Bump version and push tag
22+
id: tagger
23+
uses: mathieudutour/github-tag-action@v6.2
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
tag_prefix: "v"
27+
28+
- name: Log in to GHCR
29+
uses: redhat-actions/podman-login@v1
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Build Image
36+
id: build_image
37+
uses: redhat-actions/buildah-build@v2
38+
with:
39+
image: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
40+
tags: |
41+
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.tagger.outputs.new_tag }}
42+
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
43+
44+
context: .
45+
containerfiles: ./Dockerfile
46+
47+
- name: Push to GHCR
48+
uses: redhat-actions/push-to-registry@v2
49+
with:
50+
image: ${{ steps.build_image.outputs.image }}
51+
tags: ${{ steps.build_image.outputs.tags }}
52+
registry: ghcr.io/${{ github.repository_owner }}/{{ github.repository_name }}

.github/workflows/deploy.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ jobs:
99
build-and-push:
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: write # Required to create the Git Tag
13-
packages: write # Required to push to GHCR
12+
contents: write
13+
packages: write
1414

1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
2020

21+
# Create a lowercase version of the repository name
22+
- name: Set lower case owner and repo
23+
run: |
24+
echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
25+
2126
- name: Bump version and push tag
2227
id: tagger
2328
uses: mathieudutour/github-tag-action@v6.2
@@ -36,17 +41,14 @@ jobs:
3641
id: build_image
3742
uses: redhat-actions/buildah-build@v2
3843
with:
39-
image: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
44+
image: ghcr.io/${{ env.REPO_LOWER }}
4045
tags: |
41-
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.tagger.outputs.new_tag }}
42-
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
43-
46+
${{ steps.tagger.outputs.new_tag }}
47+
latest
4448
context: .
4549
containerfiles: ./Dockerfile
4650

4751
- name: Push to GHCR
4852
uses: redhat-actions/push-to-registry@v2
4953
with:
50-
image: ${{ steps.build_image.outputs.image }}
51-
tags: ${{ steps.build_image.outputs.tags }}
52-
registry: ghcr.io/${{ github.repository_owner }}/{{ github.repository_name }}
54+
tags: ${{ steps.build_image.outputs.tags }}

requirements.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,25 @@ pandas
22
cryptography
33
oracledb
44
pytest
5+
requests
6+
urllib3
7+
numpy
8+
pydantic
9+
httpx
10+
python-dotenv
11+
openpyxl
12+
duckdb
13+
dlt
14+
pandas
15+
numpy
16+
oracledb
17+
pymongo
18+
pyarrow
19+
scikit-learn
20+
matplotlib
21+
sqlalchemy
22+
pyodbc
23+
mssql-python
24+
pyreadstat
25+
tabulate
526
ipykernel

0 commit comments

Comments
 (0)