Skip to content

chore: route changed from scores to vp #7

chore: route changed from scores to vp

chore: route changed from scores to vp #7

Workflow file for this run

name: Deploy to Digital Ocean
on:
push:
branches:
- main
# Run tests for any PRs.
pull_request:
env:
# TODO: Change variable to your image's name.
IMAGE_NAME: web3-house-strategies
IMAGE_TAG: ${{ github.sha }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.0
- name: Build
run: GOARCH=amd64 GOOS=linux go build -mod=mod -o build/ .
- name: Build docker image
run: docker build -t thisisprince/$IMAGE_NAME:$IMAGE_TAG .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push image
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
docker push thisisprince/$IMAGE_NAME:$IMAGE_TAG
fi