Skip to content

Update README.md

Update README.md #10

Workflow file for this run

name: Build Project and push to docker
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push volt
uses: docker/build-push-action@v2
with:
context: Volt/
file: Volt/Dockerfile
pull: true
push: true
cache-from: type=registry,ref=enes1/volt-api:latest
cache-to: type=inline
tags: enes1/volt-api:latest