Skip to content

Commit

Permalink
Build the emailformgateway http server
Browse files Browse the repository at this point in the history
Add the cmd package and the main function. Update the workflow to
build and copy the emailformgateway http server to the remote server.
  • Loading branch information
owenwaller committed Feb 23, 2024
1 parent c01d899 commit cd6ecdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/emailformgateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Build server test
run: CGO_ENABLED=0 go test -c -o ./server.test -run=SendEmail github.com/owenwaller/emailformgateway/server

- nane: Build emailformgateway server
run: go build -o ./emailformgateway ./cmd/main.go

- name: Listing
run: 'ls -al'

Expand Down Expand Up @@ -66,7 +69,7 @@ jobs:

- name: Copy files to server
run: |
scp ./test_envs.sh ./emailer.test ./server.test ./*.template ./gophercoders-config.toml $TEST_CONFIG_FILE.toml gophercoders.com:
scp ./emailformgateway ./test_envs.sh ./emailer.test ./server.test ./*.template ./gophercoders-config.toml $TEST_CONFIG_FILE.toml gophercoders.com:
env:
TEST_CONFIG_FILE: ${{ secrets.TEST_CONFIG_FILE }}

Expand Down
2 changes: 2 additions & 0 deletions main.go → cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) 2024 Owen Waller. All rights reserved.

package main

import (
Expand Down

0 comments on commit cd6ecdd

Please sign in to comment.