mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Update the deploy-fleet-website workflow (#14756)
Clsoes: https://github.com/fleetdm/fleet/issues/14162 Changes: - Added two steps to the `deploy-fleet-website` workflow to prevent errors when pushing to the Heroku git repo: 1. The first step runs a command to install the `heroku-repo` plugin in the Heroku CLI. 2. The second step runs a command to reset the Heroku git repo for the Fleet website. (This has no impact on the live Heroku app)
This commit is contained in:
parent
5dfc72b2a1
commit
2216132267
1 changed files with 6 additions and 0 deletions
6
.github/workflows/deploy-fleet-website.yml
vendored
6
.github/workflows/deploy-fleet-website.yml
vendored
|
|
@ -45,6 +45,9 @@ jobs:
|
|||
justlogin: true
|
||||
- run: heroku auth:whoami
|
||||
|
||||
# Install the heroku-repo plugin in the Heroku CLI
|
||||
- run: heroku plugins:install heroku-repo
|
||||
|
||||
# Set the Node.js version
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
||||
|
|
@ -89,6 +92,9 @@ jobs:
|
|||
# Build the go binary we use to sign APNS certificates in the website/.tools/ folder.
|
||||
- run: cd ee/tools/mdm/ && GOOS=linux GOARCH=amd64 go build -o ../../../website/.tools/mdm-gen-cert .
|
||||
|
||||
# Reset the Heroku app's git repo to prevent errors when pushing to the repo. (See https://github.com/fleetdm/fleet/issues/14162 for more details)
|
||||
- run: heroku repo:reset -a production-fleetdm-website
|
||||
|
||||
# Commit newly-generated collateral locally so we can push them to Heroku below.
|
||||
# (This commit will never be pushed to GitHub- only to Heroku.)
|
||||
# > The local config flags make this work in GitHub's environment.
|
||||
|
|
|
|||
Loading…
Reference in a new issue