File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 22cryptography
33oracledb
44pytest
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
526ipykernel
You can’t perform that action at this time.
0 commit comments