feat: initial commit #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |