mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1619 from SchrodingersGat/docker-publish
Tag with release tag
This commit is contained in:
commit
b94c0b6d9b
19
.github/workflows/docker_publish.yaml
vendored
19
.github/workflows/docker_publish.yaml
vendored
@ -17,16 +17,17 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: cd
|
- name: Login to Dockerhub
|
||||||
run: |
|
uses: docker/login-action@v1
|
||||||
cd docker
|
|
||||||
- name: Push to Docker Hub
|
|
||||||
uses: docker/build-push-action@v1
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
repository: inventree/inventree
|
- name: Build and Push
|
||||||
tag_with_ref: true
|
uses: docker/build-push-action@v2
|
||||||
dockerfile: ./Dockerfile
|
with:
|
||||||
target: production
|
context: ./docker
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
push: true
|
||||||
|
target: production
|
||||||
|
repository: inventree/inventree
|
||||||
|
tags: inventree/inventree:{{ github.event.release.tag_name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user