File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616permissions :
1717 contents : read
18- packages : write
1918
2019jobs :
2120 deploy :
4847 with :
4948 name : lambda-layer
5049 path : ./python
51-
52- publish-images :
53- runs-on : ubuntu-latest
54- needs : deploy
55- steps :
56- - uses : actions/checkout@v4
57- - uses : docker/setup-buildx-action@v3
58- - name : Log in to container registry
59- uses : docker/login-action@v3
60- with :
61- registry : ghcr.io
62- username : ${{ github.actor }}
63- password : ${{ secrets.GITHUB_TOKEN }}
64-
65- - name : Set image tag from file
66- id : set-image-tag
67- run : |
68- TAG=$(cat pyatlan/version.txt)
69- echo "IMAGE_TAG=$TAG" >> $GITHUB_ENV
70-
71- - name : Wait for PyPI propagation
72- uses : nick-fields/retry@v3
73- with :
74- max_attempts : 10
75- timeout_minutes : 5
76- command : |
77- echo "Checking if pyatlan==${{ env.IMAGE_TAG }} is available on PyPI..."
78- if pip index versions pyatlan | grep -q "${{ env.IMAGE_TAG }}"; then
79- echo "Package is available on PyPI!"
80- exit 0
81- else
82- echo "Package not available yet. Retrying..."
83- exit 1
84- fi
85-
86- - name : Build and push
87- uses : docker/build-push-action@v6
88- with :
89- platforms : linux/amd64,linux/arm64
90- push : true
91- tags : |
92- ghcr.io/atlanhq/atlan-python:${{ env.IMAGE_TAG }}
93- ghcr.io/atlanhq/atlan-python:latest
94- context : .
95- file : ./Dockerfile
96- build-args : VERSION=${{ env.IMAGE_TAG }}
97- cache-from : type=gha
98- cache-to : type=gha,mode=max
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments