fix: package.json & yarn.lock to reduce vulnerabilities #161
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 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 |