neko/.github/workflows/neko.yml

38 lines
1.0 KiB
YAML
Raw Normal View History

2020-04-19 08:57:39 +12:00
name: N.eko CI
on:
push:
branches: [ master ]
jobs:
build:
name: Build
2020-04-19 09:22:50 +12:00
runs-on: ubuntu-latest
2020-04-19 12:06:02 +12:00
container: nurdism/neko:dev
2020-04-19 08:57:39 +12:00
steps:
- name: Check out code
uses: actions/checkout@v2
2020-04-19 12:06:02 +12:00
- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
2020-04-19 08:57:39 +12:00
- 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 .
2020-04-19 12:06:02 +12:00
- name: Build the latest image
run: docker build -f ./.docker/files/firefox/Dockerfile -t nurdism/neko:latest .
2020-04-19 08:57:39 +12:00
- 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