Skip to content

Commit f2d28fa

Browse files
committed
chore: add selfhosted registry
1 parent 5976960 commit f2d28fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-and-push.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ jobs:
2222
username: ${{ secrets.DOCKER_REGISTRY_LOGIN }}
2323
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
2424

25+
- name: Login to Twir registry
26+
if: steps.changed-files.outputs.any_changed == 'true' || github.event.inputs.skip-change-detect == 'true'
27+
uses: docker/login-action@v3
28+
with:
29+
registry: registry.twir.app
30+
username: ${{ secrets.DOCKER_TWIR_LOGIN }}
31+
password: ${{ secrets.DOCKER_TWIR_PASSWORD }}
32+
2533
- name: Set up Docker Buildx
2634
uses: docker/setup-buildx-action@v3
2735

@@ -31,6 +39,7 @@ jobs:
3139
platforms: linux/amd64,linux/arm64
3240
tags: |
3341
twirapp/toxicity-detector:latest
42+
registry.twir.app/twirapp/toxicity-detector:latest
3443
push: true
3544
cache-from: type=gha
3645
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)