Skip to content

Commit 10c87b0

Browse files
authored
Merge pull request #3 from vaggeliskls/feat/dockerhub
Feat/dockerhub
2 parents 244a060 + 6088140 commit 10c87b0

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
types: [published]
66

77
env:
8-
REGISTRY: ghcr.io
98
TAG_NAME: ${{ github.ref_name }}
109

1110
jobs:
@@ -23,11 +22,12 @@ jobs:
2322

2423
- name: Docker meta
2524
id: meta
26-
uses: docker/metadata-action@v4
25+
uses: docker/metadata-action@v5
2726
with:
2827
# list of Docker images to use as base name for tags
2928
images: |
30-
${{ env.REGISTRY }}/${{ github.repository }}
29+
ghcr.io/${{ github.repository }}
30+
docker.io/${{ github.repository }}
3131
# generate Docker tags based on the following events/attributes
3232
tags: |
3333
type=ref,event=branch
@@ -39,14 +39,20 @@ jobs:
3939
uses: docker/setup-buildx-action@v2
4040

4141
- name: Login to Github packages
42-
uses: docker/login-action@v2
42+
uses: docker/login-action@v3
4343
with:
44-
registry: ${{ env.REGISTRY }}
44+
registry: ghcr.io
4545
username: ${{ github.actor }}
4646
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 }}
4753

4854
- name: Build and push
49-
uses: docker/build-push-action@v4
55+
uses: docker/build-push-action@v6
5056
with:
5157
context: .
5258
file: Dockerfile

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ version: "3.9"
5757

5858
services:
5959
windows-github-runner-vm:
60-
image: ghcr.io/vaggeliskls/windows-github-custom-runner:latest
60+
image: docker.io/vaggeliskls/windows-github-custom-runner:latest
6161
env_file: .env
6262
stdin_open: true
6363
tty: true

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.9"
22

33
services:
44
windows-github-runner-vm:
5-
image: ghcr.io/vaggeliskls/windows-github-custom-runner:latest
5+
image: docker.io/vaggeliskls/windows-github-custom-runner:latest
66
build:
77
dockerfile: ./Dockerfile
88
context: .

0 commit comments

Comments
 (0)