ci: container action rot build image

This commit is contained in:
skeris 2024-12-01 16:12:32 +03:00
parent dfb53dd361
commit d51ddb909c

@ -19,16 +19,15 @@ on:
jobs:
Build-Image:
runs-on: ["${{ inputs.runner }}"]
outputs:
image-url: ${{ steps.lcname.outputs.image-name }}
container:
image: gitea.pena:3000/penadevops/container-images/node-compose:main
env:
GITHUB_RUN_NUMBER: "${{ inputs.actionid }}"
volumes:
- /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock
steps:
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- 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: 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
- name: set lower case repository
run: |
@ -37,5 +36,3 @@ jobs:
REPOSITORY: '${{ gitea.repository }}'
- 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/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}" >> $GITEA_OUTPUT