tile38/.github/workflows/main.yml

36 lines
651 B
YAML
Raw Normal View History

2020-11-03 22:27:45 +03:00
name: Go
on:
push:
branches: [master]
2020-11-03 22:27:45 +03:00
pull_request:
branches: [master]
2020-11-03 22:27:45 +03:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
2024-12-10 04:13:04 +03:00
go-version: ^1.23
2020-11-03 22:27:45 +03:00
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
2020-11-03 22:27:45 +03:00
- name: Test
run: make test
2020-11-03 22:28:57 +03:00
- name: Package
run: make package
- name: Docker push
env:
DOCKER_LOGIN: tidwall
DOCKER_USER: tile38
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ./scripts/docker-push.sh