shriarul5273's picture
renamed actions
1c949a7
raw
history blame
No virus
953 Bytes
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}}