'Data not updated on the remote machine after making git pull origin master, pipeline bitbucket
I got this pipeline and a runner on my remote machine
bitbucket_pipeline.yml:
image: rust
pipelines:
branches:
master:
- step:
name: 'Staging'
deployment: Staging
runs-on:
- self.hosted
- linux
script:
- cd /app
- pwd
- git init
- git remote add origin [email protected]:hha/app.git
- ls -la
- git fetch
- git checkout master
- git pull origin master
runner on the remote machine:
docker container run -it -v /app:/app -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ACCOUNT_UUID={r3d4-ct3d} -e REPOSITORY_UUID={r3d4-ct3d} -e RUNNER_UUID={r3d4-ct3d} -e RUNTIME_PREREQUISITES_ENABLED=true -e OAUTH_CLIENT_ID=r3d4-ct3d -e OAUTH_CLIENT_SECRET=r3d4-ct3dBpBfK0XBTr -e WORKING_DIRECTORY=/app --name runner-r3d4-ct3d docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1
Pipeline is working/passing after setting SSH keys pipeline, but I don't see any change on the path where the app is on my remote machine. Changes are done on the docker container but not on the path of my remote machine.
I have the volume on my runner -v /app:/app, but it seem doesn't work, why?. Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|