We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc5c68 commit ce904b1Copy full SHA for ce904b1
1 file changed
.github/workflows/docker.yml
@@ -0,0 +1,37 @@
1
+name: Docker Build and Push
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ paths:
7
+ - 'App/**'
8
+ - 'bootstrap/**'
9
+ - 'ForgeFoundary'
10
+ - 'composer.json'
11
+ - 'Dockerfile'
12
+ - '.dockerignore'
13
14
+jobs:
15
+ build-and-push:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout Code
19
+ uses: actions/checkout@v4
20
21
+ - name: Log in to Docker Hub
22
+ uses: docker/login-action@v3
23
+ with:
24
+ username: ${{ secrets.DOCKER_USERNAME }}
25
+ password: ${{ secrets.DOCKER_PASSWORD }}
26
27
+ - name: Set up Docker Buildx
28
+ uses: docker/setup-buildx-action@v3
29
30
+ - name: Build and Push
31
+ uses: docker/build-push-action@v5
32
33
+ context: .
34
+ push: true
35
+ tags: omarsemgey/forgefoundary:latest
36
+ cache-from: type=gha
37
+ cache-to: type=gha,mode=max
0 commit comments