Skip to content

Commit cf21f5e

Browse files
committed
feat: add dockerhub deployment using org secret
1 parent 3404f2b commit cf21f5e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/upload-artifacts.yml

+10
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
# Public:
7070
docker build -t cr.yandex/crpl7ipeu79oseqhcgn2/ydb-operator:"$VERSION" .
7171
docker push cr.yandex/crpl7ipeu79oseqhcgn2/ydb-operator:"$VERSION"
72+
7273
# Private:
7374
# no rebuild will happen, docker will fetch from cache and just retag:
7475
docker build -t cr.yandex/crpsjg1coh47p81vh2lc/ydb-kubernetes-operator:"$VERSION" .
@@ -96,3 +97,12 @@ jobs:
9697
9798
aws s3 --endpoint-url=https://storage.yandexcloud.net \
9899
cp ./charts/index.yaml s3://charts.ydb.tech/index.yaml
100+
- name: login-to-dockerhub
101+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
102+
with:
103+
username: ydbplatform
104+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
105+
- name: retag-and-push-operator-image-to-dockerhub
106+
run: |
107+
docker build -t ydbplatform/ydb-kubernetes-operator:"$VERSION" .
108+
docker push ydbplatform/ydb-kubernetes-operator:"$VERSION"

0 commit comments

Comments
 (0)