You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
name: Lint, Build, Deploy
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 14 * * *'
|
|
push:
|
|
branches: [ trunk ]
|
|
pull_request:
|
|
branches: [ trunk ]
|
|
jobs:
|
|
gopherhole-verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
|
version: latest
|
|
# - name: Verify gopherhole
|
|
# run: |
|
|
# go get -u .
|
|
# make lint
|
|
|
|
client-verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Verify client
|
|
env:
|
|
NODE_ENV: production
|
|
run: |
|
|
cd ./client;
|
|
npm run verify
|
|
|
|
gopherhole-build:
|
|
runs-on: ubuntu-latest
|
|
needs: [client-verify, gopherhole-verify]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build gopherhole image
|
|
env:
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
run: |
|
|
docker build \
|
|
--label="" \
|
|
-t vdhsn/gopherhole .
|
|
|