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 174c3d6 commit 2fc8918Copy full SHA for 2fc8918
.github/workflows/prod.yml
@@ -0,0 +1,31 @@
1
+name: Continuous Deployment (Prod)
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
7
+jobs:
8
+ build-and-deploy:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ fetch-depth: 0
14
15
+ - name: Docker login
16
+ uses: docker/login-action@v2
17
18
+ username: ${{ secrets.DOCKER_USERNAME }}
19
+ password: ${{ secrets.DOCKER_SECRET }}
20
21
+ - name: Set up Docker Buildx
22
+ uses: docker/setup-buildx-action@v2
23
24
+ - name: Build and push school image
25
+ uses: docker/build-push-action@v4
26
27
+ context: .
28
+ file: Dockerfile
29
+ push: true
30
+ tags: 100xdevs/todo-app-week-39:${{ github.sha }}
31
0 commit comments