add Docker hub publication to CI

This commit is contained in:
Xbird
2022-04-13 19:38:44 +02:00
parent e72d940b9c
commit df12b60d30

View File

@@ -72,3 +72,6 @@ publish:
- docker login $registry_host -u $registry_user -p $registry_pass - docker login $registry_host -u $registry_user -p $registry_pass
- docker build -f ./Dockerfile -t $registry_host/$registry_img:$APP_VERSION . - docker build -f ./Dockerfile -t $registry_host/$registry_img:$APP_VERSION .
- docker push $registry_host/$registry_img:$APP_VERSION - docker push $registry_host/$registry_img:$APP_VERSION
- docker logout $registry_host
- docker login $docker_host -u $docker_user -p $docker_pass
- docker push $docker_host/$docker_img:$APP_VERSION