fix: update Docker registry configuration and login endpoint in build workflow
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 1m18s
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 1m18s
This commit is contained in:
@@ -10,8 +10,7 @@ jobs:
|
|||||||
name: Build And Publish Production Image
|
name: Build And Publish Production Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
REGISTRY: registry.gitea.lab
|
REGISTRY: gitea.lab:80
|
||||||
REGISTRY_LOGIN_ENDPOINT: http://registry.gitea.lab
|
|
||||||
IMAGE_NAME: sancho41/condado-newsletter
|
IMAGE_NAME: sancho41/condado-newsletter
|
||||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
@@ -41,11 +40,11 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REGISTRY_PASSWORD" ]; then
|
if [ -z "$REGISTRY_PASSWORD" ]; then
|
||||||
echo "REGISTRY_PASSWORD secret is empty; cannot log in to ${REGISTRY_LOGIN_ENDPOINT}."
|
echo "REGISTRY_PASSWORD secret is empty; cannot log in to ${REGISTRY}."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$REGISTRY_PASSWORD" | docker login ${REGISTRY_LOGIN_ENDPOINT} -u "$REGISTRY_USERNAME" --password-stdin
|
echo "$REGISTRY_PASSWORD" | docker login ${REGISTRY} -u "$REGISTRY_USERNAME" --password-stdin
|
||||||
|
|
||||||
- name: Tag registry images
|
- name: Tag registry images
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user