Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/.github/workflows/neko.yml

40 lines
1.1 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:18:04 +12:00
with:
path: '/usr/bin/git'
2020-04-19 08:57:39 +12:00
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