Skip to content

Commit f17adc3

Browse files
author
Alexis Bouchez
authored
Update deploy.yml
1 parent ad8770f commit f17adc3

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/deploy.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy to Valyent
1+
name: Build and deploy to Valyent
22

33
on:
44
push:
@@ -9,8 +9,6 @@ on:
99
jobs:
1010
build-and-deploy:
1111
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
1412

1513
steps:
1614
- name: Checkout repository
@@ -28,25 +26,20 @@ jobs:
2826
uses: docker/metadata-action@v5
2927
with:
3028
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}}
3629

3730
- name: Build and push Docker image
3831
uses: docker/build-push-action@v5
3932
with:
4033
context: fastapi
41-
push: true
42-
tags: ${{ steps.meta.outputs.tags }}
43-
labels: ${{ steps.meta.outputs.labels }}
44-
34+
4535
- name: Install Valyent CLI
4636
run: curl -L https://cli.valyent.cloud | sh
4737

4838
- 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 }}
5043
5144
- name: Deploy to Valyent
5245
run: |

0 commit comments

Comments
 (0)