-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.01 KB
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: pr
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Molnctl Setup
uses: molnett/setup-molnctl-action@v2
with:
api-token-client-id: ${{ secrets.MOLNETT_CLIENT_ID }}
api-token-client-secret: ${{ secrets.MOLNETT_CLIENT_SECRET }}
default-org: personal
- name: Check molnctl usage
run: molnctl orgs list
- name: Build & Push Image to Molnett
run: |
molnctl auth docker
IMAGE_NAME=`molnctl svcs image-name -u molnett.yaml`
docker buildx build . -t $IMAGE_NAME
docker push $IMAGE_NAME
- name: Deploy Ephemeral Environment
uses: ./
with:
action: deploy
manifest-path: molnett.yaml
- name: Delete Ephemeral environment
uses: ./
with:
action: delete
manifest-path: molnett.yaml
- name: Cleanup
run: rm -r ~/.config/molnett