File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : CI
4
+
5
+ # Controls when the workflow will run
6
+ on :
7
+ # Triggers the workflow on push event but only for the main branch
8
+ push :
9
+ branches : [ main ]
10
+
11
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
+ jobs :
13
+ # This workflow contains a single job called "build"
14
+ build :
15
+ # The type of runner that the job will run on
16
+ runs-on : ubuntu-latest
17
+
18
+ # Steps represent a sequence of tasks that will be executed as part of the job
19
+ steps :
20
+ -
21
+ name : Checkout
22
+ uses : actions/checkout@v2
23
+ -
24
+ name : Login to Docker Hub
25
+ uses : docker/login-action@v1
26
+ with :
27
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
28
+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
29
+ -
30
+ name : Set up Docker Buildx
31
+ uses : docker/setup-buildx-action@v1
32
+ -
33
+ name : Build and push
34
+ uses : docker/build-push-action@v2
35
+ with :
36
+ context : .
37
+ file : ./Dockerfile
38
+ push : true
39
+ tags : ${{ secrets.DOCKER_HUB_USERNAME }}/amazon_book_scraper:latest
You can’t perform that action at this time.
0 commit comments