Add deploy solr in amazon eks blog #1614
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: preview-website | |
on: | |
pull_request: | |
branches: | |
- "*" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.23' | |
id: go | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18' | |
check-latest: true | |
- name: Install yq | |
run: | | |
curl -fsSL -o yqq https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64 | |
chmod +x yqq | |
sudo mv yqq /usr/local/bin/yqq | |
pipx install yq | |
- name: Install Hugo | |
run: | | |
curl -fsSL -o hugo_extended.deb https://github.com/gohugoio/hugo/releases/download/v0.111.1/hugo_extended_0.111.1_linux-amd64.deb | |
sudo dpkg -i hugo_extended.deb | |
rm hugo_extended.deb | |
- name: Install Hugo Tools | |
run: | | |
curl -fsSL -o hugo-tools https://github.com/appscodelabs/hugo-tools/releases/download/v0.2.23/hugo-tools-linux-amd64 | |
chmod +x hugo-tools | |
sudo mv hugo-tools /usr/local/bin/hugo-tools | |
- name: Update assets | |
env: | |
GOOGLE_CUSTOM_SEARCH_API_KEY: ${{ secrets.GOOGLE_CUSTOM_SEARCH_API_KEY }} | |
run: | | |
npm install | |
make assets | |
make gen-draft | |
mv .github/firebase.json firebase.json | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_QA }}' | |
projectId: kubedb-new-e7965 | |
# target: kubedb-new-e7965 | |
# entryPoint: '.' | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |