Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sunguroku committed Feb 22, 2021
1 parent bb1bdc0 commit 7293ce3
Show file tree
Hide file tree
Showing 72 changed files with 89,813 additions and 1,791 deletions.
17 changes: 8 additions & 9 deletions .github/ISSUE_TEMPLATE/bug.md
@@ -1,23 +1,22 @@
---
name: Bug Report
about: 🐛 Found a bug? Let us know!

about: 🐛 Found a bug? Let us know!
---

# Description

<!-- Please provide a high-level description of what you were trying to accomplish and what went wrong. -->
<!-- Please provide a high-level description of what you were trying to accomplish and what went wrong. -->

# Location

- [ ] Browser
- [ ] CLI
- [ ] Browser
- [ ] CLI
- [ ] API

# Steps to reproduce

1.
2.
3.
1.
2.
3.

# Additional Details
# Additional Details
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/change.md
@@ -1,13 +1,12 @@
---
name: Change
about: 🛠️ Update functionality that already exists.

about: 🛠️ Update functionality that already exists.
---

# Location

- [ ] Browser
- [ ] CLI
- [ ] Browser
- [ ] CLI
- [ ] API

# Motivation
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature.md
@@ -1,13 +1,12 @@
---
name: Feature
about: ✨ Add new functionality to the project.

---

# Location

- [ ] Browser
- [ ] CLI
- [ ] Browser
- [ ] CLI
- [ ] API

# Requirements
Expand Down
13 changes: 8 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -1,28 +1,31 @@
## Pull request type

<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->
<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Other (please describe):
- [ ] Other (please describe):

## Pull request checklist

Please check if your PR fulfills the following requirements:
- [ ] If it's a backend change, tests for the changes have been added and `go test ./...` runs successfully from the root folder.

- [ ] If it's a backend change, tests for the changes have been added and `go test ./...` runs successfully from the root folder.
- [ ] If it's a frontend change, Prettier has been run
- [ ] Docs have been reviewed and added / updated if needed

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue.

<!-- Please describe the current behavior that you are modifying, or link to a relevant issue.
Issue Number: N/A
-->


## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by this PR. -->

<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
Expand Down
88 changes: 44 additions & 44 deletions .github/workflows/release.yaml
@@ -1,46 +1,46 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create release w/ binaries and docker image

jobs:
docker-build-push:
runs-on: ubuntu-latest
steps:
- name: Get tag name
id: tag_name
run: |
tag=${GITHUB_TAG/refs\/tags\//}
echo ::set-output name=tag::$tag
env:
GITHUB_TAG: ${{ github.ref }}
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup docker
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Write Dashboard Environment Variables
run: |
cat >./dashboard/.env <<EOL
NODE_ENV=production
API_SERVER=dashboard.getporter.dev
FULLSTORY_ORG_ID=${{secrets.FULLSTORY_ORG_ID}}
DISCORD_KEY=${{secrets.DISCORD_KEY}}
DISCORD_CID=${{secrets.DISCORD_CID}}
FEEDBACK_ENDPOINT=${{secrets.FEEDBACK_ENDPOINT}}
EOL
- name: Get tag name
id: tag_name
run: |
tag=${GITHUB_TAG/refs\/tags\//}
echo ::set-output name=tag::$tag
env:
GITHUB_TAG: ${{ github.ref }}
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup docker
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Write Dashboard Environment Variables
run: |
cat >./dashboard/.env <<EOL
NODE_ENV=production
API_SERVER=dashboard.getporter.dev
FULLSTORY_ORG_ID=${{secrets.FULLSTORY_ORG_ID}}
DISCORD_KEY=${{secrets.DISCORD_KEY}}
DISCORD_CID=${{secrets.DISCORD_CID}}
FEEDBACK_ENDPOINT=${{secrets.FEEDBACK_ENDPOINT}}
EOL
cat ./dashboard/.env
- name: Build
run: |
DOCKER_BUILDKIT=1 docker build . -t porter1/porter:${{steps.tag_name.outputs.tag}} -f ./docker/Dockerfile
- name: Push
run: |
docker push porter1/porter:${{steps.tag_name.outputs.tag}}
cat ./dashboard/.env
- name: Build
run: |
DOCKER_BUILDKIT=1 docker build . -t porter1/porter:${{steps.tag_name.outputs.tag}} -f ./docker/Dockerfile
- name: Push
run: |
docker push porter1/porter:${{steps.tag_name.outputs.tag}}
build:
name: Build binaries
runs-on: ubuntu-latest
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
# Note: we have to zip all binaries before uploading them as artifacts --
# without this step, the binaries will be uploaded but the file metadata will
# be listed as plaintext after downloading the artifact in a later step
#
#
# TODO: investigate
- name: Zip Linux binaries
run: |
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
- name: Install gon via HomeBrew for code signing and app notarization
run: |
brew tap mitchellh/gon
brew install mitchellh/gon/gon
brew install mitchellh/gon/gon
- name: Create a porter.gon.json file
run: |
echo "
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
draft: false
prerelease: true
- name: Upload Linux CLI Release Asset
id: upload-linux-cli-release-asset
id: upload-linux-cli-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -257,7 +257,7 @@ jobs:
asset_name: porter_${{steps.tag_name.outputs.tag}}_Linux_x86_64.zip
asset_content_type: application/zip
- name: Upload Linux Server Release Asset
id: upload-linux-server-release-asset
id: upload-linux-server-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -268,7 +268,7 @@ jobs:
asset_name: portersvr_${{steps.tag_name.outputs.tag}}_Linux_x86_64.zip
asset_content_type: application/zip
- name: Upload Linux Docker Credential Release Asset
id: upload-linux-docker-cred-release-asset
id: upload-linux-docker-cred-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -279,7 +279,7 @@ jobs:
asset_name: docker-credential-porter_${{steps.tag_name.outputs.tag}}_Linux_x86_64.zip
asset_content_type: application/zip
- name: Upload Darwin CLI Release Asset
id: upload-darwin-cli-release-asset
id: upload-darwin-cli-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -290,7 +290,7 @@ jobs:
asset_name: porter_${{steps.tag_name.outputs.tag}}_Darwin_x86_64.zip
asset_content_type: application/zip
- name: Upload Darwin Server Release Asset
id: upload-darwin-server-release-asset
id: upload-darwin-server-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -301,7 +301,7 @@ jobs:
asset_name: portersvr_${{steps.tag_name.outputs.tag}}_Darwin_x86_64.zip
asset_content_type: application/zip
- name: Upload Darwin Docker Credential Release Asset
id: upload-darwin-docker-cred-release-asset
id: upload-darwin-docker-cred-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -312,7 +312,7 @@ jobs:
asset_name: docker-credential-porter_${{steps.tag_name.outputs.tag}}_Darwin_x86_64.zip
asset_content_type: application/zip
- name: Upload Windows CLI Release Asset
id: upload-windows-cli-release-asset
id: upload-windows-cli-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -323,7 +323,7 @@ jobs:
asset_name: porter_${{steps.tag_name.outputs.tag}}_Windows_x86_64.zip
asset_content_type: application/zip
- name: Upload Windows Server Release Asset
id: upload-windows-server-release-asset
id: upload-windows-server-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -334,7 +334,7 @@ jobs:
asset_name: portersvr_${{steps.tag_name.outputs.tag}}_Windows_x86_64.zip
asset_content_type: application/zip
- name: Upload Windows Docker Credential Release Asset
id: upload-windows-docker-cred-release-asset
id: upload-windows-docker-cred-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -345,7 +345,7 @@ jobs:
asset_name: docker-credential-porter_${{steps.tag_name.outputs.tag}}_Windows_x86_64.zip
asset_content_type: application/zip
- name: Upload Static Release Asset
id: upload-static-release-asset
id: upload-static-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
44 changes: 42 additions & 2 deletions .github/workflows/staging.yaml
@@ -1,12 +1,13 @@
name: Build, Push to GCR.
on:
push:
branches:
- staging
branches:
- staging
jobs:
login-build-push:
runs-on: ubuntu-latest
steps:
<<<<<<< Updated upstream
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
with:
Expand Down Expand Up @@ -35,3 +36,42 @@ jobs:
- name: Push
run: |
docker push gcr.io/porter-dev-273614/porter:staging
=======
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Install kubectl
run: |
sudo apt-get install kubectl
- name: Log in to gcloud CLI
run: gcloud auth configure-docker
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Write Dashboard Environment Variables
run: |
cat >./dashboard/.env <<EOL
NODE_ENV=production
API_SERVER=dashboard.staging.getporter.dev
FULLSTORY_ORG_ID=${{secrets.FULLSTORY_ORG_ID}}
DISCORD_KEY=${{secrets.DISCORD_KEY}}
DISCORD_CID=${{secrets.DISCORD_CID}}
FEEDBACK_ENDPOINT=${{secrets.FEEDBACK_ENDPOINT}}
POSTHOG_API_KEY=${{secrets.POSTHOG_API_KEY}}
POSTHOG_HOST=${{secrets.POSTHOG_HOST}}
EOL
- name: Build
run: |
DOCKER_BUILDKIT=1 docker build . -t gcr.io/porter-dev-273614/porter:staging -f ./docker/Dockerfile
- name: Push
run: |
docker push gcr.io/porter-dev-273614/porter:staging
- name: Deploy to cluster
run: |
gcloud container clusters get-credentials \
staging --region us-central1 --project ${{ secrets.GCP_PROJECT_ID }}
kubectl rollout restart deployment/porter
>>>>>>> Stashed changes

0 comments on commit 7293ce3

Please sign in to comment.