File tree 1 file changed +6
-13
lines changed
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
- name : Build and Deploy to Valyent
1
+ name : Build and deploy to Valyent
2
2
3
3
on :
4
4
push :
9
9
jobs :
10
10
build-and-deploy :
11
11
runs-on : ubuntu-latest
12
- permissions :
13
- contents : read
14
12
15
13
steps :
16
14
- name : Checkout repository
@@ -28,25 +26,20 @@ jobs:
28
26
uses : docker/metadata-action@v5
29
27
with :
30
28
images : registry.valyent.cloud/${{ secrets.VALYENT_ORG }}/${{ secrets.VALYENT_APP }}
31
- tags : |
32
- type=ref,event=branch
33
- type=ref,event=pr
34
- type=sha,format=long
35
- type=raw,value=latest,enable={{is_default_branch}}
36
29
37
30
- name : Build and push Docker image
38
31
uses : docker/build-push-action@v5
39
32
with :
40
33
context : fastapi
41
- push : true
42
- tags : ${{ steps.meta.outputs.tags }}
43
- labels : ${{ steps.meta.outputs.labels }}
44
-
34
+
45
35
- name : Install Valyent CLI
46
36
run : curl -L https://cli.valyent.cloud | sh
47
37
48
38
- name : Authenticate Valyent CLI
49
- run : ~/.valyent/bin/valyent auth login --api-key ${{ secrets.VALYENT_API_KEY }} --organization ${{ secrets.VALYENT_ORG }}
39
+ run : |
40
+ ~/.valyent/bin/valyent auth login \
41
+ --api-key ${{ secrets.VALYENT_API_KEY }} \
42
+ --organization ${{ secrets.VALYENT_ORG }}
50
43
51
44
- name : Deploy to Valyent
52
45
run : |
You can’t perform that action at this time.
0 commit comments