-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (41 loc) · 1.55 KB
/
docker-push-vidvec.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Publish Video Operator to Dockerhub
on: workflow_dispatch
jobs:
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: "Setup Node version"
uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Declare some variables
id: vars
shell: bash
run: |
echo "setting variables"
echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: elgohr/Publish-Docker-Github-Action@master
with:
username: tattletech
password: ${{ secrets.DOCKER_PASSWORD }}
name: tattletech/feluda-operator-vidvec
workdir: src/api/
dockerfile: Dockerfile.vid_vec_rep_resnet
tags: ${{ steps.vars.outputs.sha_short }}
platforms: linux/amd64,linux/arm64
# - name: deploy to cluster
# uses: steebchen/[email protected]
# with: # defaults to latest kubectl binary version
# config: ${{ secrets.PROD_KUBE_CONFIG_DATA }}
# command: set image --record deployment/feluda-server feluda-server=tattletech/feluda-server:${{ steps.vars.outputs.sha_short }}
# - name: verify deployment
# uses: steebchen/[email protected]
# with:
# config: ${{ secrets.PROD_KUBE_CONFIG_DATA }}
# version: v1.21.0 # specify kubectl binary version explicitly
# command: rollout status deployment/feluda-server