2021-04-11 05:08:13 +00:00
|
|
|
# Publish docker images to dockerhub
|
|
|
|
|
|
|
|
name: Docker Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
2021-04-18 05:17:57 +00:00
|
|
|
publish_image:
|
2021-04-11 05:08:13 +00:00
|
|
|
name: Push InvenTree web server image to dockerhub
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repo
|
|
|
|
uses: actions/checkout@v2
|
2021-04-18 10:00:03 +00:00
|
|
|
- name: cd
|
|
|
|
run: |
|
|
|
|
cd docker
|
2021-04-11 05:08:13 +00:00
|
|
|
- name: Push to Docker Hub
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
repository: inventree/inventree
|
|
|
|
tag_with_ref: true
|
2021-04-18 10:00:03 +00:00
|
|
|
dockerfile: ./Dockerfile
|