-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,15 @@ runs: | |
with: | ||
go-version: '1.23' | ||
|
||
- name: 'Create env file' | ||
- name: Build the app | ||
shell: bash | ||
working-directory: ./go | ||
run: | | ||
go mod download | ||
GOOS=linux go build -o bin/app cmd/main.go | ||
- name: Create env file | ||
working-directory: ./go/bin | ||
shell: bash | ||
run: | | ||
touch .env | ||
|
@@ -47,14 +55,7 @@ runs: | |
echo DB_PASSWORD=${{ inputs.db_password }} >> .env | ||
echo DB_NAME=${{ inputs.db_name }} >> .env | ||
- name: Build the app | ||
shell: bash | ||
working-directory: ./go | ||
run: | | ||
go mod download | ||
GOOS=linux go build -o bin/app cmd/main.go | ||
- name: Deploy to my EC2 instance | ||
- name: Deploy to EC2 instance | ||
uses: easingthemes/[email protected] | ||
with: | ||
REMOTE_HOST: 'ec2-13-41-72-100.eu-west-2.compute.amazonaws.com' | ||
|
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