Skip to content

feat: initial commit #3

feat: initial commit

feat: initial commit #3

Workflow file for this run

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