sagemath/sage

Make Docker images generated by GitHub CI workflows available; minor CI fixes

mkoeppe opened this issue · 42 comments

They are already tagged with meaningful names and just need to be pushed to a registry.

Now we push them to the registry provided by GitHub.
Example: https://github.com/mkoeppe/sage/runs/604103405 created https://github.com/mkoeppe/sage/packages/193111

Depends on #29341
Depends on #29534

CC: @kliem @vbraun @dimpase @embray @saraedum @slel

Component: porting

Keywords: ci, ContinuousIntegration

Author: Matthias Koeppe

Branch/Commit: 163562d

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29530

slel commented

Changed keywords from none to ci

Description changed:

--- 
+++ 
@@ -1,3 +1,7 @@
+They are already tagged with meaningful names and just need to be pushed to a registry.
+
+Also the CI workflows should be run `on: push: tags:` (https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags), not just `on: pull_requests`
+
 https://www.docker.com/blog/first-docker-github-action-is-here/
 
 https://github.com/actions/starter-workflows/blob/master/ci/docker-publish.yml
comment:3

will it be possible to pull an image for letting cal inspection and debugging? cool.
(currently building a fedora 28 image locally...)

Dependencies: #29341

Changed keywords from ci to ci, ContinuousIntegration

Changed dependencies from #29341 to #29341, #29534

Description changed:

--- 
+++ 
@@ -1,6 +1,6 @@
 They are already tagged with meaningful names and just need to be pushed to a registry.
 
-Also the CI workflows should be run `on: push: tags:` (https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags), not just `on: pull_requests`
+Also the CI workflows should be run `on: push: tags:` (https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags), not just `on: pull_requests`; that's #29534.
 
 https://www.docker.com/blog/first-docker-github-action-is-here/
 
comment:7

Replying to @dimpase:

will it be possible to pull an image for ... inspection and debugging?

Yes, that's the idea

Branch pushed to git repo; I updated commit sha1. New commits:

e506503Add documentation
d6b64batox-optional.yml: Push the docker images

Description changed:

--- 
+++ 
@@ -1,9 +1,4 @@
-They are already tagged with meaningful names and just need to be pushed to a registry.
+They are already tagged with meaningful names and just need to be pushed to a registry. 
 
-Also the CI workflows should be run `on: push: tags:` (https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags), not just `on: pull_requests`; that's #29534.
-
-https://www.docker.com/blog/first-docker-github-action-is-here/
-
-https://github.com/actions/starter-workflows/blob/master/ci/docker-publish.yml
-
-
+Now we push them to the registry provided by [GitHub](../wiki/GitHub).
+Example: https://github.com/mkoeppe/sage/runs/604103405 created https://github.com/mkoeppe/sage/packages/193111

Author: Matthias Koeppe

Changed commit from d6b64ba to 06a9c39

Branch pushed to git repo; I updated commit sha1. New commits:

06a9c39fixup doc

Changed commit from 06a9c39 to 02f86f6

Branch pushed to git repo; I updated commit sha1. New commits:

02f86f6tox*.yml: First try secrets.DOCKER_PKG_GITHUB_TOKEN, then secrets.GITHUB_TOKEN; ignore errors

Branch pushed to git repo; I updated commit sha1. New commits:

00a82b0Merge tag '9.1.rc1' into t/29530/make_docker_images_generated_by_github_ci_workflows_available
807c2bdFix spelling of --downloadonly
bd687c9Merge branch 't/29403/ci_cygwin_yml__multi_stage_build' into t/29341/optional-test-9.1.rc0
784abe8ci-cygwin.yml: SAGE_FAT_BINARY=yes
eeadb9d.github/workflows/ci-cygwin.yml: Test more optional packages
316c5f6Fixup
37c2186Merge branch 't/29341/optional-test-9.1.rc0' into t/29530/make_docker_images_generated_by_github_ci_workflows_available

Changed commit from 02f86f6 to 37c2186

Branch pushed to git repo; I updated commit sha1. New commits:

87210e9.github/workflows/ci-cygwin.yml: Rebalance stages
0d886ccbuild/pkgs/pari_nftables/distros/arch.txt: Remove (package does not exist)

Changed commit from 37c2186 to 0d886cc

Changed commit from 0d886cc to 652787b

Branch pushed to git repo; I updated commit sha1. New commits:

652787b.github/workflows/tox*.yml: Make copying logs from containers more robust
comment:17

copying logs needs more work, e.g. https://github.com/mkoeppe/sage/runs/612694530?check_suite_focus=true displays no logs

Branch pushed to git repo; I updated commit sha1. New commits:

2b9f531local-{conda,homebrew}-maximal: Take packages from -standard

Changed commit from 652787b to 2b9f531

Changed commit from 2b9f531 to 88b5aa6

Branch pushed to git repo; I updated commit sha1. New commits:

88b5aa6tox.ini: Commit a failed build container so that logs are copied from it

Changed commit from 88b5aa6 to f8c6e7a

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

f8c6e7atox.ini: Commit a failed build container so that logs are copied from it

Changed commit from f8c6e7a to 4f4fe60

Branch pushed to git repo; I updated commit sha1. New commits:

5c8e685tox-optional.yml: Fix likewise
4f4fe60ci-cygwin.yml: Split the file so that unrelated stages do not wait

Branch pushed to git repo; I updated commit sha1. New commits:

27c63f1Improve docker login instructions

Changed commit from 4f4fe60 to 27c63f1

Branch pushed to git repo; I updated commit sha1. New commits:

dbf461dMerge tag '9.1.rc2' into t/29530/make_docker_images_generated_by_github_ci_workflows_available

Changed commit from 27c63f1 to dbf461d

Changed commit from dbf461d to 163562d

Branch pushed to git repo; I updated commit sha1. New commits:

163562dRename cygwin workflows
comment:26

OK, this looks nice now. I have tested just one docker image, but I trust this should be fine in general.

Reviewer: Dima Pasechnik

comment:27

Thank you!