We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b181b0d commit 389ab49Copy full SHA for 389ab49
.github/workflows/docker.yml
@@ -1,4 +1,4 @@
1
-name: Build GLPI Docker Image
+name: Build & Push GLPI Docker Image
2
3
on:
4
push:
@@ -16,11 +16,18 @@ jobs:
16
- name: Set up Docker Buildx
17
uses: docker/setup-buildx-action@v3
18
19
- - name: Build Docker Image (tag 11)
+ - name: Log in to Docker Hub
20
+ uses: docker/login-action@v3
21
+ with:
22
+ username: ${{ secrets.DOCKER_HUB_USERNAME }}
23
+ password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
24
+
25
+ - name: Build & Push Docker Image
26
uses: docker/build-push-action@v6
27
with:
28
context: .
29
file: Dockerfile
- push: false
- tags: glpi:11
30
+ push: true
31
+ tags: |
32
+ ${{ secrets.DOCKER_HUB_USERNAME }}/glpi:latest
33
platforms: linux/amd64
0 commit comments