File tree Expand file tree Collapse file tree 1 file changed +3
-34
lines changed Expand file tree Collapse file tree 1 file changed +3
-34
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ permissions:
12
12
13
13
jobs :
14
14
test :
15
+ permissions :
16
+ contents : ' read'
17
+ id-token : ' write'
15
18
runs-on : ubuntu-latest
16
19
steps :
17
20
- name : Checkout code
39
42
- name : Lint & Format (Ruff)
40
43
run : rye run ruff check .
41
44
42
- # - name: Log in to GHCR
43
- # run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
44
-
45
- # - name: Build container
46
- # run: |
47
- # IMAGE_NAME=ghcr.io/query-farm/python-airport-test-server
48
- # docker build -t $IMAGE_NAME:latest .
49
-
50
- # - name: Start server container
51
- # run: |
52
- # IMAGE_NAME=ghcr.io/query-farm/python-airport-test-server
53
- # docker run -d --name airport_test_server -p 50003:50003 $IMAGE_NAME:latest
54
-
55
- # - name: Stop server
56
- # run: |
57
- # docker stop airport_test_server
58
-
59
- # - name: Push Docker image to GHCR
60
- # run: |
61
- # IMAGE_NAME=ghcr.io/query-farm/python-airport-test-server
62
- # docker push $IMAGE_NAME:latest
63
-
64
- # Build Linux images on ubuntu runner
65
- build-linux :
66
- needs : test
67
- runs-on : ubuntu-latest
68
-
69
- permissions :
70
- contents : ' read'
71
- id-token : ' write'
72
- steps :
73
- - name : Checkout code
74
- uses : actions/checkout@v4
75
-
76
45
- name : Authenticate to Google Cloud
77
46
uses : google-github-actions/auth@v2
78
47
with :
You can’t perform that action at this time.
0 commit comments