Hi help pleace
i’m trying to implement CI/CD through github actions, i want to build the application in the flow and paste it in the server. i’ve tried this but i get an error
`jobs:
This workflow contains a single job called “build”
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout the repository
uses: actions/checkout@v2
-
name: Set up Go 1.13
uses: actions/setup-go@v1 with: go-version: 1.13 id: go
- name: Deploy and rebuild on server
uses: appleboy/ssh-action@master
with:
host: 167.172.187.75
username: root
key: ${{ secrets.serverKey }}
port: 22
script:
cd go/victorydash/ &&
git pull origin master &&
git status &&
echo $PATH &&
go build -o app main.go && #here is the error
systemctl restart goweb.service &&
systemctl status goweb `
- name: Deploy and rebuild on server
this is the error
out: nothing to commit, working tree clean
out: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
err: bash: go: command not found
is there a way to do this?
thanks