mirror of
https://github.com/mpolden/echoip.git
synced 2025-01-27 18:35:04 +01:00
30 lines
690 B
YAML
30 lines
690 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.15
|
|
- name: build and test
|
|
run: make
|
|
- name: enable experimental docker features
|
|
run: |
|
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json ~/.docker/config.json
|
|
sudo service docker restart
|
|
- name: build docker image
|
|
run: make docker-build
|
|
- name: publish docker image
|
|
run: make docker-push
|
|
- name: publish multi-arch docker image
|
|
run: make docker-pushx
|