remove port from registry url

This commit is contained in:
skeris 2024-11-30 15:11:08 +03:00
parent 98a6503e0e
commit dfb53dd361

@ -27,15 +27,15 @@ jobs:
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
uses: https://gitea.pena/PenaDevops/actions.git/checkout@v1
- run: echo "The workflow is now ready to test your code on the runner."
- run: podman login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_PASSWORD }} gitea.pena:3000
- run: podman login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_PASSWORD }} gitea.pena
- name: set lower case repository
run: |
echo "REPOSITORY_LC=${REPOSITORY,,}" >>${GITEA_ENV}
env:
REPOSITORY: '${{ gitea.repository }}'
- run: podman build -t gitea.pena:3000/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }} .
- run: podman push gitea.pena:3000/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}
- run: podman build -t gitea.pena/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }} .
- run: podman push gitea.pena/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}
- id: lcname
run: echo "image-name=gitea.pena:3000/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}" >> $GITEA_OUTPUT
run: echo "image-name=gitea.pena/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}" >> $GITEA_OUTPUT