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-08-07 11:21:09 +00:00
|
|
|
- name: Check Release tag
|
|
|
|
run: |
|
|
|
|
python3 ci/check_version_number.py ${{ github.event.release.tag_name }}
|
2021-04-22 17:28:21 +00:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2021-05-29 07:48:40 +00:00
|
|
|
- name: Login to Dockerhub
|
|
|
|
uses: docker/login-action@v1
|
2021-04-11 05:08:13 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2021-05-29 07:48:40 +00:00
|
|
|
- name: Build and Push
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: ./docker
|
2021-04-23 07:30:23 +00:00
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
2021-05-29 07:48:40 +00:00
|
|
|
push: true
|
|
|
|
target: production
|
2021-08-12 12:01:42 +00:00
|
|
|
build-args:
|
|
|
|
tag: ${{ github.event.release.tag_name }}
|
2021-05-29 07:48:40 +00:00
|
|
|
repository: inventree/inventree
|
2021-05-29 08:28:07 +00:00
|
|
|
tags: inventree/inventree:${{ github.event.release.tag_name }}
|