Set replicas to rebuild suggester index on startup #46
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: Build main | |
on: | |
push: | |
# When merged this should end up being branches: [master] (or, | |
# better yet, branches: [main]). | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- webapp | |
- assets | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/build-push-action@v2 | |
env: | |
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{secrets.GH_PACKAGE_READ_TOKEN}} | |
with: | |
context: . | |
file: Dockerfile.prod | |
target: ${{ matrix.target }} | |
push: true | |
tags: | | |
ghcr.io/mlibrary/dromedary/dromedary_unstable_${{ matrix.target }}:latest | |
ghcr.io/mlibrary/dromedary/dromedary_unstable_${{ matrix.target }}:${{ github.sha }} |