Skip to content

Commit

Permalink
chore(infra): run PC build on self hosted (#3070)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Nov 30, 2023
1 parent 4f1d0df commit 5553c3d
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/platform-docker-publish-all-features-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,9 @@ env:
FLAGSMITH_AUTH_CONTROLLER_REVISION: v0.0.1

jobs:
start-runner:
runs-on: ubuntu-latest
outputs:
runner-label: ${{ steps.start.outputs.runner-label }}
instance-id: ${{ steps.start.outputs.instance-id }}
steps:
- uses: Flagsmith/actions/ec2-runner/[email protected]
id: start
with:
github-access-token: ${{ secrets.GH_RUNNER_TOKEN }}
aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID_EC2_RUNNER }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_EC2_RUNNER }}

build-dockerhub:
name: Platform Publish Docker Image
needs: [start-runner]
runs-on: ${{ needs.start-runner.outputs.runner-label }}
runs-on: self-hosted

steps:
- name: Cloning repo
Expand Down Expand Up @@ -123,16 +109,3 @@ jobs:
SAML_INSTALLED=1
POETRY_OPTS=--with saml,auth-controller,ldap
GH_TOKEN=${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
stop-runner:
needs: [start-runner, build-dockerhub]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: Flagsmith/actions/ec2-runner/[email protected]
with:
github-access-token: ${{ secrets.GH_RUNNER_TOKEN }}
aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID_EC2_RUNNER }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_EC2_RUNNER }}
runner-label: ${{ needs.start-runner.outputs.runner-label }}
instance-id: ${{ needs.start-runner.outputs.instance-id }}

3 comments on commit 5553c3d

@vercel
Copy link

@vercel vercel bot commented on 5553c3d Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs.flagsmith.com
docs.bullet-train.io
docs-git-main-flagsmith.vercel.app
docs-flagsmith.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5553c3d Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5553c3d Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.