Skip to content

Revert "feat: disabled customJs" #107

Revert "feat: disabled customJs"

Revert "feat: disabled customJs" #107

Workflow file for this run

name: docker
on:
push:
branches:
- 'master'
env:
DB_TYPE: ${{ secrets.DB_TYPE }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_DATABASE: ${{ secrets.DB_DATABASE }}
DB_RETRY_DELAY: ${{ secrets.DB_RETRY_DELAY }}
DB_RETRY_ATTEMPTS: ${{ secrets.DB_RETRY_ATTEMPTS }}
WRITE_SWAGGER: ${{ secrets.WRITE_SWAGGER }}
RUNNING_ENV: ${{ secrets.RUNNING_ENV }}
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }}
POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DATABASE: ${{ secrets.POSTGRES_DATABASE }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-nestjs-nakoruru
- name: Set tag
id: tag
run: |
echo "tag=$(date +%Y)-$(date +%m)-$(date +%d)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}-nakoruru
- name: Build and push to docker hub
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: VERSION=${{ env.tag }}
tags: |
${{ secrets.DOCKER_USERNAME }}/nestjs-nakoruru:latest
${{ secrets.DOCKER_USERNAME }}/nestjs-nakoruru:${{ env.tag }}