summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-12-19 21:59:10 -0700
committermo khan <mo.khan@gmail.com>2020-02-06 10:37:35 -0700
commit519b7ed3fb6dc7f70f50a84fee400093c9724072 (patch)
treecf122ff968f39420a43ac8080def6c2129d07de4 /.github
parent26cdfebf31f024e331429e482b1ee342708888e3 (diff)
Build st in docker
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..799750a
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,16 @@
+name: Docker Build
+on:
+ push:
+ branches:
+ - master
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: build
+ run: |
+ docker login docker.pkg.github.com -u mokhan -p ${{ secrets.GITHUB_TOKEN }}
+ docker pull docker.pkg.github.com/mokhan/mst/mokha-st:latest || true
+ docker build --cache-from docker.pkg.github.com/mokhan/mst/mokha-st:latest -t docker.pkg.github.com/mokhan/mst/mokha-st:latest .
+ docker push docker.pkg.github.com/mokhan/mst/mokha-st:latest