Merge pull request #6 from live-apps-in/migration-InversifyJS-to-Nest… #85
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: kitty chan Domain Build Pipeline | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: Development | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build Docker image | |
run: | | |
docker build \ | |
--build-arg DISCORD_CLIENT_ID=${{ vars.DISCORD_CLIENT_ID }} \ | |
--build-arg DISCORD_CLIENT_ID=${{ vars.DISCORD_BOT_TOKEN }} \ | |
--build-arg DISCORD_CLIENT_SECRET=${{ secrets.DISCORD_CLIENT_SECRET }} \ | |
--build-arg DISCORD_API=${{ vars.DISCORD_API }} \ | |
--build-arg GRPC_URL=${{ vars.GRPC_URL }} \ | |
--build-arg REDIS_HOST=${{ vars.REDIS_HOST }} \ | |
--build-arg REDIS_PASS=${{ vars.REDIS_PASS }} \ | |
--build-arg MONGO_URI=${{ secrets.MONGO_URI }} \ | |
--build-arg ES_HOST=${{ vars.ES_HOST }} \ | |
--build-arg LOAD_LANGUAGE_LIBS=${{ vars.LOAD_LANGUAGE_LIBS }} \ | |
-t jagalive/kittychan-domain:${{ github.sha }} . | |
docker tag jagalive/kittychan-domain:${{ github.sha }} jagalive/kittychan-domain:latest | |
working-directory: ./ | |
- name: Push Docker image | |
run: | | |
docker push jagalive/kittychan-domain:${{ github.sha }} | |
docker push jagalive/kittychan-domain:latest |