Skip to content

Commit 389ab49

Browse files
committed
update to push image
1 parent b181b0d commit 389ab49

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build GLPI Docker Image
1+
name: Build & Push GLPI Docker Image
22

33
on:
44
push:
@@ -16,11 +16,18 @@ jobs:
1616
- name: Set up Docker Buildx
1717
uses: docker/setup-buildx-action@v3
1818

19-
- name: Build Docker Image (tag 11)
19+
- 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
2026
uses: docker/build-push-action@v6
2127
with:
2228
context: .
2329
file: Dockerfile
24-
push: false
25-
tags: glpi:11
30+
push: true
31+
tags: |
32+
${{ secrets.DOCKER_HUB_USERNAME }}/glpi:latest
2633
platforms: linux/amd64

0 commit comments

Comments
 (0)