Commit Graph

17 Commits

Author SHA1 Message Date
Jens Petersen
3739c7aaeb update GH actions to v3 2023-01-04 15:52:23 +08:00
Jens Petersen
14e465b3a1 GH check action: bump to ubuntu-22.04
because stack defaults ghc-9.4.3 to a bindist that needs glibc-2.32
2022-11-19 21:23:27 +08:00
Mihai Maruseac
b05a7b08ea Change CI to lts20
Signed-off-by: Mihai Maruseac <mihai.maruseac@gmail.com>
2022-11-15 16:37:08 -08:00
nathannaveen
d848a54838 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
2022-05-31 21:40:42 -07:00
Jens Petersen
70317ea1c4 GH image action: lts19 branch 2022-03-17 17:08:51 +08:00
Michael Snoyman
0c5bc988e1
Enable image workflow 2021-08-19 12:14:58 +03:00
Jens Petersen
a0a3df145f disable the GHA for building images since we are not using it yet 2021-07-02 17:22:49 +08:00
Jens Petersen
37809469d0 GH check action: try restricting to the master branch 2021-06-17 23:35:33 +08:00
Jens Petersen
113a8313db github docker registry requires image name below repository name
name unknown: docker image push is only supported with a tag of the format :owner/:repo_name/:image_name.
		Please add an image name to "commercialhaskell/stackage" tag. e.g. "commercialhaskell/stackage/<image_name>"
2021-06-17 23:29:38 +08:00
Jens Petersen
14f4d3b79f GH image: fix branch tag 2021-06-17 22:59:33 +08:00
Jens Petersen
ceaa6825ab add GH workflow action to create the build image
Based on https://github.com/fpco/stackage-server/blob/master/.github/workflows/base.yml

Image is pushed to docker.pkg.github.com.
Later we should switch from docker to current beta container registry ghcr.io
2021-06-17 22:24:23 +08:00
Jens Petersen
b9f1c635c1 GH workflow: we don't actually use haskell/actions just our own stack 2021-06-17 14:35:35 +08:00
Jens Petersen
2dcb7d8e8f .github: drop the hardcoding of cabal-install 2021-04-15 11:27:29 +08:00
Jens Petersen
98e53dc17e github workflow: also specify cabal-install default 3.4 to avoid pulling 3.2 2021-02-21 02:45:36 +08:00
Jens Petersen
a4e107cbe1 github workflow: specify ghc 8.10 - ubuntu 8.10.3 currently 2021-02-21 02:37:53 +08:00
Jens Petersen
fcc5ea235f github workflow: specify ghc version for completeness 2021-02-21 02:25:47 +08:00
Jens Petersen
e2ac7b6308 add github workflow check action 2021-02-17 11:29:21 +08:00