mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
# Publish docker images to dockerhub
|
|
|
|
name: Docker Publish
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
server_image:
|
|
name: Push InvenTree web server image to dockerhub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repo
|
|
uses: actions/checkout@v2
|
|
- 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
|
|
dockerfile: docker/inventree/Dockerfile
|
|
|
|
nginx_image:
|
|
name: Push InvenTree nginx image to dockerhub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repo
|
|
uses: actions/checkout@v2
|
|
- name: Push to Docker Hub
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: inventree/nginx
|
|
tag_with_ref: true
|
|
dockerfile: docker/nginx/Dockerfile
|