Skip to content

Commit ca3faf4

Browse files
authored
feat: update actions and enable dockerhub image storage
1 parent 244a060 commit ca3faf4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
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

0 commit comments

Comments
 (0)