File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 5
5
types : [published]
6
6
7
7
env :
8
- REGISTRY : ghcr.io
9
8
TAG_NAME : ${{ github.ref_name }}
10
9
11
10
jobs :
@@ -23,11 +22,12 @@ jobs:
23
22
24
23
- name : Docker meta
25
24
id : meta
26
- uses : docker/metadata-action@v4
25
+ uses : docker/metadata-action@v5
27
26
with :
28
27
# list of Docker images to use as base name for tags
29
28
images : |
30
- ${{ env.REGISTRY }}/${{ github.repository }}
29
+ ghcr.io/${{ github.repository }}
30
+ docker.io/${{ github.repository }}
31
31
# generate Docker tags based on the following events/attributes
32
32
tags : |
33
33
type=ref,event=branch
@@ -39,14 +39,20 @@ jobs:
39
39
uses : docker/setup-buildx-action@v2
40
40
41
41
- name : Login to Github packages
42
- uses : docker/login-action@v2
42
+ uses : docker/login-action@v3
43
43
with :
44
- registry : ${{ env.REGISTRY }}
44
+ registry : ghcr.io
45
45
username : ${{ github.actor }}
46
46
password : ${{ secrets.GITHUB_TOKEN }}
47
+
48
+ - name : Login to Dockerhub
49
+ uses : docker/login-action@v3
50
+ with :
51
+ username : ${{ secrets.DOCKERHUB_REGISTRY_USERNAME }}
52
+ password : ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}
47
53
48
54
- name : Build and push
49
- uses : docker/build-push-action@v4
55
+ uses : docker/build-push-action@v6
50
56
with :
51
57
context : .
52
58
file : Dockerfile
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ version: "3.9"
57
57
58
58
services :
59
59
windows-github-runner-vm :
60
- image : ghcr .io/vaggeliskls/windows-github-custom-runner:latest
60
+ image : docker .io/vaggeliskls/windows-github-custom-runner:latest
61
61
env_file : .env
62
62
stdin_open : true
63
63
tty : true
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3.9"
2
2
3
3
services :
4
4
windows-github-runner-vm :
5
- image : ghcr .io/vaggeliskls/windows-github-custom-runner:latest
5
+ image : docker .io/vaggeliskls/windows-github-custom-runner:latest
6
6
build :
7
7
dockerfile : ./Dockerfile
8
8
context : .
You can’t perform that action at this time.
0 commit comments