Commit graph

35 commits

Author SHA1 Message Date
Caleb Xavier Berger aacde8c0ac Attempt to share images by pushing to local registry
It looks like the docker-container buildx driver can't see host images, but if we put the image on the local registry things should (fingers crossed) work out OK.
Load and push cannot happen at the same time
2021-01-19 02:46:19 -05:00
Caleb Xavier Berger 7e5a3c9ba3 [temp] simplify how image name is sent to second dockerfile
Remove double :latest
2021-01-19 02:46:19 -05:00
Caleb Xavier Berger a9675fe5c3 Sanity check image present after build 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger 764602b22a (Hopefully) Read $TARGETPLATFORM correctly 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger 190dd7b105 Fix wrong tag used in copyin 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger 699842748f Use BuildKit/buildx autopopulated ARGs for getting builder image 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger 321abc4071 Add curl to builder container 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger cc46934d38 Copy built files directly from builder image 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger 8f8f455bea Use env var for image base name 2021-01-19 02:29:32 -05:00
Caleb Xavier Berger dc6213ddc8 Fix YAML errors because I am smart
add missing env.
Somehow, I forgot to write `run` in `docker run`
tag -> tags
2021-01-19 02:29:32 -05:00
Caleb Xavier Berger 2e473d83af Build against musl in docker 2021-01-18 22:47:12 -05:00
Caleb Xavier Berger cecdec2dec Add basic dockerfile 2021-01-18 22:45:28 +00:00
Caleb Xavier Berger 1cd6a17ad4
Image building requires Go compile to be complete
Maybe I should just do the whole thing as one mega-job...
2021-01-18 12:53:50 -05:00
Caleb Xavier Berger 0685010bce
Add missing runs-on key 2021-01-18 12:51:54 -05:00
Caleb Xavier Berger 1aeb29ceec Start on building monolith image
Right now still the "old way," awaiting community input re: Dockerfiles
2021-01-18 17:49:42 +00:00
Caleb Xavier Berger ff07aa473d
Merge branch 'master' into fancy-cross 2021-01-18 10:45:05 -05:00
Caleb Xavier Berger cfebfac16e x86_64-pc -> x86_64
I thought this was standardized
2021-01-18 15:07:56 +00:00
Caleb Xavier Berger 83e3f29515 Bash is a single-pass language 2021-01-18 15:05:01 +00:00
Caleb Xavier Berger aeb9bd7a2e Go just calls it arm, not armhf
... which might be onto something, though how many soft-float devices are out there
anyway?
2021-01-18 14:51:20 +00:00
Caleb Xavier Berger 030c025295 Add workflow for cross-compiling dendrite 2021-01-18 14:46:55 +00:00
Caleb Xavier Berger a2492a9fd1 Add utility script for cross-compile workflow 2021-01-18 14:45:54 +00:00
Neil Alexander f6151b6290
Use dendritegithub for Docker Hub images 2021-01-18 14:00:47 +00:00
Neil Alexander 67c89b3c5e
Version 0.3.6 2021-01-18 13:37:49 +00:00
Neil Alexander cf82e08096
Update GHA Docker Hub builds
Squashed commit of the following:

commit 4a61aa711473deece2adf415cfd65501dbca63b2
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date:   Mon Jan 18 12:19:24 2021 +0000

    Set back to matrixdotorg on published releases

commit 6d1ac53f2c0c9b30e1e70c0bb1559e1b8ec874a2
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date:   Mon Jan 18 11:55:28 2021 +0000

    Rename

commit 258999f7fb7b655b3a02a06a7ea05e66fb7740fb
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date:   Mon Jan 18 11:52:26 2021 +0000

    Refactor multi-stage builds

commit c7ab8e476939899571e7b5668860dec372b9b60f
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date:   Mon Jan 18 11:13:19 2021 +0000

    Let's try this again
2021-01-18 12:24:23 +00:00
Neil Alexander df4386f764
Build docker branch only 2021-01-18 11:03:50 +00:00
Neil Alexander 833e01a612
Update docker-build-and-push.yml 2021-01-18 10:26:36 +00:00
TR_SLimey ff94490384
GitHub action for automatic multiarch Docker build (#1613)
* Create docker-build-and-push.yml

* Switched to using official Docker buildx action

* Added comment to docker-build-and-push.yml
In case something needs to be tweaked in the future, the link
contains some examples and explanations which would be useful

* Run only on release (and produce release tags)

As this workflow takes quite a lot of time, and [pushing to master happens frequently](https://github.com/matrix-org/dendrite/pull/1613#issuecomment-746086980), the container will now only be built when a release is created, and the builds will also be correctly tagged.

* Add latest tag, test at neilalexander/dendrite*

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-01-18 10:23:53 +00:00
Neil Alexander c870435c17
Update PULL_REQUEST_TEMPLATE.md 2020-10-02 16:56:13 +01:00
Kegsay 378a0520be
Add custom issue templates; fixes #1421 (#1460) 2020-10-01 15:00:16 +01:00
Neil Alexander fed3ebd2f1
CodeQL analysis 2020-09-30 21:18:35 +01:00
Sam a6700331ce
Update all usages of tx.Stmt to sqlutil.TxStmt (#1423)
* Replace all usages of txn.Stmt with sqlutil.TxStmt

Signed-off-by: Sam Day <me@samcday.com>

* Fix sign off link in PR template.

Signed-off-by: Sam Day <me@samcday.com>

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-09-24 11:10:14 +01:00
Neil Alexander b4c07995d6
Create FUNDING.yml 2020-07-15 11:30:32 +01:00
Andrew Morgan 1667a4b09f
Add SyTest support to CI (#704)
Adds SyTest CI through CircleCI.

Also need to add all the tests that currently pass to testfile, but I don't think that's a hard blocker for merging.
2019-05-24 15:00:03 +01:00
Aaron Raimist ac3ebcb3ed Fix PR templates and use matrix.to instead of riot.im/develop (#687)
* Use absolute links in pull request template

Relative links don't work in most places

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Use matrix.to (for now) instead of linking to riot.im/develop

Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-01-28 10:15:33 +00:00
Andrew Morgan 4452cb4a65
Add PR template (#686) 2019-01-25 16:00:59 +00:00