fix deploy repository name (#7)

This commit is contained in:
vitaxa 2021-11-24 18:45:59 +03:00 committed by GitHub
parent bfe1faad04
commit e4d2e74322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "rbk-build-actions",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript Action Template",
"main": "index.js",
"scripts": {

View File

@ -26,4 +26,4 @@ runs:
run: docker login -u ${{inputs.registry-username}} -p ${{inputs.registry-password}}
- shell: bash
run: docker push --all-tags "${GITHUB_REPOSITORY_OWNER,,}/${REPOSITORY_NAME}"
run: docker push --all-tags "${GITHUB_REPOSITORY_OWNER,,}/${GITHUB_REPOSITORY#*/}"

View File

@ -33,9 +33,9 @@ runs:
- shell: bash
run: |
echo "RBK_REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV
echo "RBK_REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
echo "RBK_DOCKER_REGISTRY=registry.hub.docker.com" >> $GITHUB_ENV
echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
echo "DOCKER_HUB_REGISTRY=registry.hub.docker.com" >> $GITHUB_ENV
- shell: bash
run: mvn -B clean compile package -Ddockerfile.registry=https://${RBK_DOCKER_REGISTRY} ${{ inputs.mvn-args }}
run: mvn -B clean compile package -Ddockerfile.registry=https://${DOCKER_HUB_REGISTRY} ${{ inputs.mvn-args }}