You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

name: Docker Image CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
# build server api
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run:
cd server && gradle clean build && cd ..
# build client static files
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install and build
run: |
cd client && yarn
yarn build && cd ..
env:
CI: true
# build docker image
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ourfor:findjob
# publish image
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ourfor/findjob
username: ${{ secrets.DOCKER_NAME }}
password: ${{ secrets.DOCKER_PASSWD }}