File tree Expand file tree Collapse file tree 4 files changed +32
-15
lines changed Expand file tree Collapse file tree 4 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 69
69
if : startsWith(github.ref, 'refs/tags/v')
70
70
steps :
71
71
- uses : actions/checkout@v4
72
- - name : Download definition
73
- uses : actions/download-artifact@v4
74
- with :
75
- name : connector-definition
76
- path : ./connector-definition/dist
77
72
- name : Login to GitHub Container Registry
78
73
uses : docker/login-action@v3
79
74
with :
@@ -85,19 +80,11 @@ jobs:
85
80
uses : docker/metadata-action@v5
86
81
with :
87
82
images : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}
88
- - name : Debugging
89
- run : |
90
- echo "Contents of root directory:"
91
- ls -la
92
- ls -la ./connector-definition
93
- cat ./connector-definition/Dockerfile
94
- # echo "Contents of connector-definition/dist/.hasura-connector:"
95
- # ls -la connector-definition/dist/.hasura-connector
96
83
- name : Build and push Docker image
97
84
uses : docker/build-push-action@v5
98
85
with :
99
- context : ./connector-definition/dist/.hasura-connector
100
- push : ${{ startsWith(github.ref, 'refs/tags/v') }}
86
+ context : .
87
+ push : true
101
88
tags : ${{ steps.docker-metadata.outputs.tags }}
102
89
labels : ${{ steps.docker-metadata.outputs.labels }}
103
90
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ set -eu -o pipefail
3
+
4
+ cd /functions
5
+
6
+ if [ ! -d " venv" ]
7
+ then
8
+ python3 -m venv venv
9
+ . venv/bin/activate
10
+ if [ -f " requirements.txt" ]
11
+ then
12
+ pip install -r requirements.txt
13
+ fi
14
+ else
15
+ . venv/bin/activate
16
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ set -eu -o pipefail
3
+
4
+ /scripts/package-restore.sh
5
+
6
+ cd /functions
7
+
8
+ # Activate virtual environment if it exists
9
+ if [ -f " venv/bin/activate" ]; then
10
+ source venv/bin/activate
11
+ fi
12
+
13
+ # Run the Python script with the serve command
14
+ python3 functions/functions.py serve --configuration ./
You can’t perform that action at this time.
0 commit comments