|
|
|
@ -3,18 +3,15 @@ type: docker
@@ -3,18 +3,15 @@ type: docker
|
|
|
|
|
name: default |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- name: env |
|
|
|
|
image: docker |
|
|
|
|
- name: Build |
|
|
|
|
image: golang |
|
|
|
|
environment: |
|
|
|
|
NASA_TOKEN: |
|
|
|
|
from_secret: nasa_api |
|
|
|
|
commands: |
|
|
|
|
- env |
|
|
|
|
- name: Build |
|
|
|
|
image: golang |
|
|
|
|
commands: |
|
|
|
|
- go get github.com/reujab/wallpaper |
|
|
|
|
- go vet -v |
|
|
|
|
- env |
|
|
|
|
- GOOS="linux" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-Linux |
|
|
|
|
- GOOS="windows" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-Win.exe |
|
|
|
|
- GOOS="darwin" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-macOS |
|
|
|
|