This commit is contained in:
2025-05-13 22:37:19 +02:00
parent 0d3e6c93f4
commit 03e83f50d9

View File

@@ -19,7 +19,7 @@ jobs:
# container: node:16-bullseye # container: node:16-bullseye
runs-on: ubuntu-runner runs-on: ubuntu-runner
container: container:
image: node:16 image: docker
# container: # container:
# image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest # image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
# credentials: # credentials:
@@ -30,14 +30,9 @@ jobs:
steps: steps:
- name: Show Information - name: Show Information
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}" run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
- name: Git clone private repository
uses: actions/checkout@v3
with:
repository: ${{ vars.GIT_USER_REPO }}/${{ env.GIT_REPO }}
ref: main
token: ${{ secrets.REPOSITORY_RW }}
- name: clone & build - name: clone & build
run: | run: |
git clone https://${{ secrets.REPOSITORY_RW }}:x-oauth-basic@${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ env.GIT_REPO }}
cd ${{ env.GIT_REPO }} cd ${{ env.GIT_REPO }}
pwd pwd
echo "sed -i "s/^FROM .*/FROM node:18/" /workspace/${{ vars.GIT_USER_REPO }}/gitea-runner/${{ env.GIT_REPO }}/Dockerfile" echo "sed -i "s/^FROM .*/FROM node:18/" /workspace/${{ vars.GIT_USER_REPO }}/gitea-runner/${{ env.GIT_REPO }}/Dockerfile"