File size: 953 Bytes
1c949a7
805fde8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ca0ede
 
805fde8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
efb5818
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
name: Docker Image Build and Push

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:

  build:

    runs-on: ubuntu-latest

    steps:
      -
        name: Step-1 Clone github Reop
        uses: actions/checkout@v2
        with:
              lfs: 'true'
      -
        name: Step-2 Login to Docker
        uses: docker/login-action@v2.0.0 
        with :
          username: ${{secrets.DOCKER_USERNAME}}
          password: ${{secrets.DOCKER_PASSWORD}}
      - 
        name: Step-3 Docker Steup
        uses: docker/setup-buildx-action@v2.0.0
      -
        name: Step-4 Docker Build and push to docker hub
        uses: docker/build-push-action@v3.1.1
        with :
          context: .
          file: ./Dockerfile
          push: true
          tags: ${{secrets.DOCKER_USERNAME}}/robust_rgb-d_saliency_detection:latest , ${{secrets.DOCKER_USERNAME}}/robust_rgb-d_saliency_detection:1.0.${{github.run_number}}