Skip to content

fix: package.json & yarn.lock to reduce vulnerabilities #165

fix: package.json & yarn.lock to reduce vulnerabilities

fix: package.json & yarn.lock to reduce vulnerabilities #165

name: Docker build and push develpoment
on:
push
jobs:
build-development:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ./
file: ./docker/Dockerfile
build-args: RAILS_MASTER_KEY=${{ secrets.RAILS_MASTER_KEY }}
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: it52/rails:latest
cache-from: type=registry,ref=it52/rails:buildcache-dev
cache-to: type=registry,ref=it52/rails:buildcache-dev,mode=max