2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

Merge branch 'master' of https://github.com/inventree/InvenTree into feature/performance-op

This commit is contained in:
2021-04-21 10:47:25 +02:00
62 changed files with 47618 additions and 2798 deletions

View File

@ -29,6 +29,7 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install gettext
pip3 install invoke
invoke install
invoke static
@ -43,6 +44,8 @@ jobs:
rm test_db.sqlite
invoke migrate
invoke import-records -f data.json
- name: Test Translations
run: invoke translate
- name: Check Migration Files
run: python3 ci/check_migration_files.py
- name: Upload Coverage Report

View File

@ -1,8 +1,11 @@
# Test that the docker file builds correctly
# Build and push latest docker image on push to master branch
name: Docker
name: Docker Build
on: ["push", "pull_request"]
on:
push:
branches:
- 'master'
jobs:
@ -10,7 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker Image
run: cd docker && docker build . --tag inventree:$(date +%s)
- name: Checkout Code
uses: actions/checkout@v2
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: ./docker
push: true
repository: inventree/inventree
tags: inventree/inventree:latest
- name: Image Digest
run: echo ${{ steps.docker_build.outputs.digest }}