Create docker-image.yml #9
Workflow file for this run
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: | | |
docker build . --file Dockerfile --tag ngx-ramblers:$(date +%s) \ | |
--build-arg AUTH_SECRET=${{ secrets.AUTH_SECRET }} \ | |
--build-arg AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \ | |
--build-arg AWS_BUCKET=${{ secrets.AWS_BUCKET }} \ | |
--build-arg AWS_REGION=${{ secrets.AWS_REGION }} \ | |
--build-arg AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \ | |
--build-arg CHROMEDRIVER_PATH=${{ secrets.CHROMEDRIVER_PATH }} \ | |
--build-arg CHROMEDRIVER_VERSION=${{ secrets.CHROMEDRIVER_VERSION }} \ | |
--build-arg CHROME_VERSION=${{ secrets.CHROME_VERSION }} \ | |
--build-arg DEBUG=${{ secrets.DEBUG }} \ | |
--build-arg DEBUG_COLORS=${{ secrets.DEBUG_COLORS }} \ | |
--build-arg GOOGLE_CHROME_BIN=${{ secrets.GOOGLE_CHROME_BIN }} \ | |
--build-arg GOOGLE_MAPS_APIKEY=${{ secrets.GOOGLE_MAPS_APIKEY }} \ | |
--build-arg MEETUP_ACCESS_TOKEN=${{ secrets.MEETUP_ACCESS_TOKEN }} \ | |
--build-arg MONGODB_URI=${{ secrets.MONGODB_URI }} \ | |
--build-arg NODE_ENV=${{ secrets.NODE_ENV }} \ | |
--build-arg NODE_OPTIONS=${{ secrets.NODE_OPTIONS }} \ | |
--build-arg WALKS_NPM_COMMAND=${{ secrets.WALKS_NPM_COMMAND }} |