We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8359bcb commit aa4fe5eCopy full SHA for aa4fe5e
1 file changed
.github/workflows/.github/workflows/docker-build.yml
@@ -0,0 +1,31 @@
1
+name: CI/CD Pipeline - Docker Build
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ workflow_dispatch: # Allows you to run it manually
7
8
+jobs:
9
+ build-and-push:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ # 1. Check out the code
14
+ - name: Checkout Code
15
+ uses: actions/checkout@v3
16
17
+ # 2. Login to Docker Hub (Uses the secrets you just added)
18
+ - name: Login to Docker Hub
19
+ uses: docker/login-action@v2
20
+ with:
21
+ username: ${{ secrets.DOCKER_USERNAME }}
22
+ password: ${{ secrets.DOCKER_PASSWORD }}
23
24
+ # 3. Build and Push
25
+ - name: Build and Push
26
+ uses: docker/build-push-action@v4
27
28
+ context: .
29
+ file: ./Dockerfile
30
+ push: true
31
+ tags: sonu7552/aspnetrun-realworld:latest
0 commit comments