Skip to content

refactor: add readme and update deps #4

refactor: add readme and update deps

refactor: add readme and update deps #4

Workflow file for this run

name: Deploy to Docker Hub
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: abdealijaroli/jaro:latest
# - name: Deploy to server
# run: |
# ssh -i ${{ secrets.SERVER_SSH_KEY }} -v ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "docker pull abdealijaroli/jaro:latest && docker run -d -p 8008:8008 abdealijaroli/jaro:latest"