Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpolden/echoip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-01-24 16:56:53 +0300
committerMartin Polden <mpolden@mpolden.no>2021-01-24 16:57:20 +0300
commit4f071cd6a2781896906d58075e548b7250f9d466 (patch)
tree6e8eb0c67cb9177b3596807f4fac72b14ad09c03 /.github
parent994c2529e9c81204eda469bcb0ddad9f9bb9eb30 (diff)
build: Configure GitHub Actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..6afa25f
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+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