From 16a9b30291b204851c9dec52b488265f73957612 Mon Sep 17 00:00:00 2001 From: Craig Date: Sat, 18 Apr 2020 20:57:39 +0000 Subject: [PATCH] test out git actions --- .github/workflows/neko.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/neko.yml diff --git a/.github/workflows/neko.yml b/.github/workflows/neko.yml new file mode 100644 index 0000000..7cc193c --- /dev/null +++ b/.github/workflows/neko.yml @@ -0,0 +1,38 @@ +name: N.eko CI + +on: + push: + branches: [ master ] + +jobs: + build: + name: Build + runs-on: nurdism/neko:dev + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Get go dependencies and build server + working-directory: server + run: go get -v -t -d ./... && ./build + + - name: Get npm dependencies and build Client + working-directory: client + run: npm install && npm run build + + - name: Build the base image + run: docker build -f ./.docker/files/base/Dockerfile -t nurdism/neko:base . + + - name: Build the firefox image + run: docker build -f ./.docker/files/firefox/Dockerfile -t nurdism/neko:firefox -t nurdism/neko:latest . + + - name: Build the chromium image + run: docker build -f ./.docker/files/chromium/Dockerfile -t nurdism/neko:chromium . + + - name: Push the Docker images + run: | + echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.DOCKER_REGISTRY_URL }} -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + docker push nurdism/neko:base + docker push nurdism/neko:latest + docker push nurdism/neko:firefox + docker push nurdism/neko:chromium