Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to tag skipper build in git subdir #174

Closed
IliaFeldgun opened this issue Feb 17, 2024 · 2 comments · Fixed by #175
Closed

Fails to tag skipper build in git subdir #174

IliaFeldgun opened this issue Feb 17, 2024 · 2 comments · Fixed by #175
Assignees

Comments

@IliaFeldgun
Copy link
Contributor

=> => naming to docker.io/library/jenkins-tools:none

[ilia@fedora jenkins-tools]$ skipper build jenkins-tools
WARNING:root:*** Not working in a git repository ***
[skipper] Building image: jenkins-tools
INFO:skipper:Building image: jenkins-tools
[+] Building 0.1s (12/12) FINISHED                                                                                        docker:default
 => [internal] load build definition from Dockerfile.jenkins-tools                                                                  0.0s
 => => transferring dockerfile: 503B                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                   0.0s
 => => transferring context: 2B                                                                                                     0.0s
 => [internal] load metadata for rackattack-nas.dc1:5000/python:3.10.12-slim-buster                                                 0.0s
 => [1/7] FROM rackattack-nas.dc1:5000/python:3.10.12-slim-buster                                                                   0.0s
 => [internal] load build context                                                                                                   0.0s
 => => transferring context: 313B                                                                                                   0.0s
 => CACHED [2/7] COPY requirements.txt /tmp/requirements.txt                                                                        0.0s
 => CACHED [3/7] RUN python -m pip install -r /tmp/requirements.txt                                                                 0.0s
 => CACHED [4/7] COPY dist/zadara_jenkins_tools-*.whl /tmp/                                                                         0.0s
 => CACHED [5/7] RUN python -m pip install /tmp/zadara_jenkins_tools-*.whl                                                          0.0s
 => CACHED [6/7] RUN echo $(eval "$(_FOO_BAR_COMPLETE=bash_source job-aligner)") >> ~/.bashrc                                       0.0s
 => CACHED [7/7] RUN rm -rf /tmp/zadara_jenkins_tools.whl /tmp/requirements.txt                                                     0.0s
 => exporting to image                                                                                                              0.0s
 => => exporting layers                                                                                                             0.0s
 => => writing image sha256:18f558fa752599d1c818f36ab6c8cef756a368d857a4ff7d91a4e1ef3bedb961                                        0.0s
 => => naming to docker.io/library/jenkins-tools:none                                                                               0.0s
[ilia@fedora jenkins-tools]$ git rev-parse HEAD
f2d5912a56a79ae31664c722212a9a4b1181c15f
[ilia@fedora jenkins-tools]$ 
@IliaFeldgun
Copy link
Contributor Author

Consider using git rev-parse --is-inside-work-tree

@IliaFeldgun
Copy link
Contributor Author

      Successfully uninstalled strato-skipper-2.2.3
Successfully installed strato-skipper-2.2.4.dev1
[ilia@fedora jenkins-tools]$ skipper build jenkins-tools
[skipper] Building image: jenkins-tools
[+] Building 0.1s (12/12) FINISHED                                                                                        docker:default
 => [internal] load .dockerignore                                                                                                   0.0s
 => => transferring context: 2B                                                                                                     0.0s
 => [internal] load build definition from Dockerfile.jenkins-tools                                                                  0.0s
 => => transferring dockerfile: 503B                                                                                                0.0s
 => [internal] load metadata for rackattack-nas.dc1:5000/python:3.10.12-slim-buster                                                 0.0s
 => [1/7] FROM rackattack-nas.dc1:5000/python:3.10.12-slim-buster                                                                   0.0s
 => [internal] load build context                                                                                                   0.0s
 => => transferring context: 313B                                                                                                   0.0s
 => CACHED [2/7] COPY requirements.txt /tmp/requirements.txt                                                                        0.0s
 => CACHED [3/7] RUN python -m pip install -r /tmp/requirements.txt                                                                 0.0s
 => CACHED [4/7] COPY dist/zadara_jenkins_tools-*.whl /tmp/                                                                         0.0s
 => CACHED [5/7] RUN python -m pip install /tmp/zadara_jenkins_tools-*.whl                                                          0.0s
 => CACHED [6/7] RUN echo $(eval "$(_FOO_BAR_COMPLETE=bash_source job-aligner)") >> ~/.bashrc                                       0.0s
 => CACHED [7/7] RUN rm -rf /tmp/zadara_jenkins_tools.whl /tmp/requirements.txt                                                     0.0s
 => exporting to image                                                                                                              0.0s
 => => exporting layers                                                                                                             0.0s
 => => writing image sha256:18f558fa752599d1c818f36ab6c8cef756a368d857a4ff7d91a4e1ef3bedb961                                        0.0s
 => => naming to docker.io/library/jenkins-tools:f2d5912a56a79ae31664c722212a9a4b1181c15f                                           0.0s
[ilia@fedora jenkins-tools]$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant