Skip to content

no sat fix

no sat fix #62

Workflow file for this run

name: ORDAPI DEPLOY CI
on:
push:
branches:
- '*'
env:
BASE_IMAGE_NAME: crypticmetadev/ordapi
BRANCH_NAME: ${{ github.ref_name }}
IMAGE_NAME: crypticmetadev/ordapi:${{ github.ref_name }}
jobs:
build-and-push-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: crypticmetadev
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ env.IMAGE_NAME }}
build-args: |
MONGODB_URI=${{ secrets.MONGODB_URI }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache