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

Every update i make in the yml file fails. #65

Open
kabengwa opened this issue Apr 1, 2019 · 5 comments
Open

Every update i make in the yml file fails. #65

kabengwa opened this issue Apr 1, 2019 · 5 comments

Comments

@kabengwa
Copy link

kabengwa commented Apr 1, 2019

I have created a CICD and added a yml file
deploy_dev: stage: deploy_to_my_dev image: tetraweb/php:7.1 before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - apt-get update - apt-get autoclean - apt-get update - apt-get install sshpass script: - _other scripts_
However it was working before and now all it does is fail with the following errors.

`

Err http://deb.debian.org jessie-updates/main amd64 Packages

Err http://deb.debian.org jessie-updates/main amd64 Packages

Err http://deb.debian.org jessie-updates/main amd64 Packages

Err http://deb.debian.org jessie-updates/main amd64 Packages
404 Not Found [IP: 151.101.112.204 80]
Get:9 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Get:10 http://security.debian.org jessie/updates/main amd64 Packages [825 kB]
Fetched 10.1 MB in 23s (437 kB/s)
W: GPG error: https://dl.yarnpkg.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.112.204 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
`

@christianschoenmakers
Copy link

Can confirm this issue, the image needs to be updated. Or can I manually run the commands to this existing image @edenoscherer ?

@kabengwa
Copy link
Author

kabengwa commented Apr 11, 2019

I decided to use the official php image and just add everything I needed to run my gitlab deployment int the install script. I actually find it much better and very customizable .. maybe until they correct the bugs

@edenoscherer
Copy link

Sorry for the delay in answering
in my .gitlab-ci.yml file I have the following commands

  - echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
  - sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
  - apt-get -o Acquire::Check-Valid-Until=false update && apt-get install -y -qq zip unzip wget

@christianschoenmakers
Copy link

Thx, that did the trick!

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

No branches or pull requests

3 participants