forked from luxonis/depthai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 857 Bytes
/
Copy pathdocker-hub.yml
File metadata and controls
30 lines (30 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish Docker image
on:
push:
tags:
- "*"
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Get Version
id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
file: ci/Dockerfile
tags: luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}