We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73bad21 commit a538be8Copy full SHA for a538be8
.github/workflows/docker.yml
@@ -0,0 +1,24 @@
1
+name: Docker Image CI
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
+ name: Docker build
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout the repo
15
+ uses: actions/checkout@v3
16
+ - name: Build the Docker image
17
+ uses: docker/login-action@v2
18
+ with:
19
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
20
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
21
22
+ run: docker build --platform linux --tag ${{ secrets.DOCKERHUB_USERNAME }}/backenddockerci:latest -f Dockerfile .
23
+ - name: Push the Docker image
24
+ run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/backenddockerci:latest
0 commit comments