diff --git a/.env b/.env deleted file mode 100644 index 9940dd91..00000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -SPONSOR=bed-is-all-my-pleasure \ No newline at end of file diff --git a/.github/workflows/porter_stack_again.yml b/.github/workflows/porter_stack_again.yml new file mode 100644 index 00000000..5191c432 --- /dev/null +++ b/.github/workflows/porter_stack_again.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - again-again +name: Deploy to again +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Deploy stack + timeout-minutes: 30 + uses: porter-dev/porter-cli-action@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "3081" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "8975" + PORTER_STACK_NAME: again + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8975_3081 }} diff --git a/.github/workflows/porter_stack_testing.yml b/.github/workflows/porter_stack_testing.yml new file mode 100644 index 00000000..23d6513a --- /dev/null +++ b/.github/workflows/porter_stack_testing.yml @@ -0,0 +1,26 @@ +"on": + push: + branches: + - again-again +name: Deploy to testing +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Deploy stack + timeout-minutes: 30 + uses: porter-dev/porter-cli-action@v0.1.0 + with: + command: apply -f ./porter.yaml + env: + PORTER_CLUSTER: "3081" + PORTER_HOST: https://dashboard.getporter.dev + PORTER_PROJECT: "8975" + PORTER_STACK_NAME: testing + PORTER_TAG: ${{ steps.vars.outputs.sha_short }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8975_3081 }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d2a626f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM node:latest diff --git a/porter.yaml b/porter.yaml deleted file mode 100644 index 9952f4bc..00000000 --- a/porter.yaml +++ /dev/null @@ -1,15 +0,0 @@ -version: v1 -resources: -- name: web - source: - name: web - config: - build: - method: pack - builder: heroku/buildpacks:20 - values: - ingress: - enabled: false - container: - command: node index.js - port: 3000