@@ -53,28 +53,30 @@ jobs:
53
53
- ci
54
54
55
55
steps :
56
- - name : Checkout
57
- uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
56
+ # Checkout the repository
57
+ - name : Checkout repository
58
+ uses : actions/checkout@v3
58
59
59
- - name : Login to GitHub Container Registry
60
- uses : docker/login-action@v3
60
+ # Set up Docker Buildx (to support multi-platform builds)
61
+ - name : Set up Docker Buildx
62
+ uses : docker/setup-buildx-action@v2
63
+
64
+ # Log in to GitHub Container Registry (GHCR)
65
+ - name : Log in to GitHub Container Registry
66
+ uses : docker/login-action@v2
61
67
with :
62
68
registry : ghcr.io
63
69
username : ${{ github.repository_owner }}
64
70
password : ${{ secrets.GITHUB_TOKEN }}
65
71
66
- - name : Set up QEMU
67
- uses : docker/setup-qemu-action@v3
68
-
69
- - name : Set up Docker Buildx
70
- uses : docker/setup-buildx-action@v3
71
-
72
- - name : Build and push
72
+ # Build and push the Docker image
73
+ - name : Build and push Docker image
73
74
uses : docker/build-push-action@v5
74
75
with :
75
76
context : .
76
- file : ./Dockerfile
77
- platforms : linux/amd64,linux/arm64
78
77
push : true
79
- tags : |
80
- ghcr.io/sharevb/it-tools:nightly
78
+ tags : ghcr.io/${{ github.repository_owner }}/it-tools:nightly
79
+
80
+ # Optionally log out
81
+ - name : Log out from GitHub Container Registry
82
+ run : docker logout ghcr.io
0 commit comments