Merge pull request #1619 from SchrodingersGat/docker-publish

Tag with release tag
This commit is contained in:
Oliver 2021-05-29 18:24:57 +10:00 committed by GitHub
commit b94c0b6d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,16 +17,17 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: cd
run: |
cd docker
- name: Push to Docker Hub
uses: docker/build-push-action@v1
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: inventree/inventree
tag_with_ref: true
dockerfile: ./Dockerfile
target: production
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: ./docker
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
target: production
repository: inventree/inventree
tags: inventree/inventree:{{ github.event.release.tag_name }}