Commit Graph

364 Commits

Author SHA1 Message Date
hashworks
2c27f13737 Merge branch 'doc/README' into 'master'
Make README more user-centric and explain CI processes

Closes #40 and #48

See merge request archlinux/archlinux-docker!51
2020-11-30 21:17:12 +00:00
Justin Kromlinger
1a5fbeea9d
Make README more user-centric and explain CI processes
Resolves #40 and #48.
2020-11-30 22:13:02 +01:00
hashworks
86fb81c860 Merge branch 'dockerfile/prettyReleaseURL' into 'master'
Provide a pretty release link in the Dockerfile

Closes #49

See merge request archlinux/archlinux-docker!52
2020-11-18 18:33:21 +00:00
Justin Kromlinger
6b36cb9812
Provide a pretty release link in the Dockerfile
Resolves #49.
2020-11-18 19:04:34 +01:00
Sven-Hendrik Haase
67dddfbf76 Merge branch 'fix/apiPagination' into 'master'
Always retrieve the latest package from the API, add error handling

See merge request archlinux/archlinux-docker!50
2020-11-13 10:20:11 +00:00
Justin Kromlinger
c1cc41db1a
Fail public download script on API / json parsing errors 2020-11-13 11:09:11 +01:00
Justin Kromlinger
9c39d53baf
Always retrieve the latest package from the API
Without this stuff fails after a while since the API is paginated and
sorted by ASC by default.
2020-11-13 11:07:13 +01:00
hashworks
73504a73cd Merge branch 'dockerfileCMDsToMakefile' into 'master'
Move all Dockerfile commands to Makefile

Closes #45

See merge request archlinux/archlinux-docker!49
2020-11-13 09:22:32 +00:00
Justin Kromlinger
17b668efb4
Add configuration files before we run locale-gen 2020-11-07 21:14:58 +01:00
Justin Kromlinger
f875ac9565
Move ldconfig back to Dockerfile since its a noop in fakechroot
strace: execve("/bin/true", ["ldconfig"], 0x563fc29f9fa0 /* 101 vars */) = 0
2020-11-07 17:52:39 +01:00
Justin Kromlinger
52c1613c20
Don't use after_script to test base-devel
after_script won't affect the job exit code [1], so we can't use it for
tests. Instead we are using YAML anchors for script [2].

[1] https://docs.gitlab.com/ee/ci/yaml/#before_script-and-after_script
[2] https://docs.gitlab.com/ee/ci/yaml/#yaml-anchors-for-script
2020-11-07 17:19:16 +01:00
Justin Kromlinger
a51b77535a
Clean GitLabCI make commands 2020-11-07 17:09:11 +01:00
Justin Kromlinger
0b616a629a
Always build rootfs archives before the Dockerfiles
The Dockerfiles require them for their sha256sum.
2020-11-07 16:50:03 +01:00
Justin Kromlinger
d177146b3b
Move all Dockerfile commands to Makefile
Resolves #45.
2020-11-07 16:49:07 +01:00
Justin Kromlinger
41d5da410a
Drop depth=1 to fix "shallow update not allowed" 2020-11-02 22:29:45 +01:00
Sven-Hendrik Haase
ac398b334a Merge branch 'fix/dockerHubLibraryBuilds' into 'master'
Switch to alpine in verify stage

See merge request archlinux/archlinux-docker!47
2020-11-02 20:47:19 +00:00
Justin Kromlinger
9c5a9ccc95
Drop DL3020 ignore since we are using COPY 2020-11-02 20:14:12 +01:00
Justin Kromlinger
7d5a90c0a0
Drop apk update since we use --no-cache 2020-11-02 20:13:19 +01:00
Justin Kromlinger
2f647bce74
Drop DL3007 from ignore list since we pin alpine:3.12 2020-11-02 20:05:46 +01:00
Justin Kromlinger
0ad84af7b7
Drop alpine version pins, ignore DL3018
https://gitlab.archlinux.org/archlinux/archlinux-docker/-/merge_requests/47#note_6125
2020-11-02 20:03:42 +01:00
Justin Kromlinger
fdd9e81fc0
Switch to 3.12 versions for curl and bash 2020-11-02 19:44:04 +01:00
Justin Kromlinger
1fe6646735
DL3018, DL3018: Pin apk package versions, use --no-cache 2020-11-02 19:37:20 +01:00
Justin Kromlinger
daa67d1857
Switch to alpine in verify stage
This fixes a circular dependency issue noted in [1].

`curl -s` and removal of `--auto-compress` are needed because of
differences in the binaries in alpine.

[1] https://github.com/docker-library/official-images/pull/8999#issuecomment-720622797
2020-11-02 19:30:07 +01:00
Justin Kromlinger
d4bfcb130c
Add missing semicolon 2020-11-02 17:42:50 +01:00
Sven-Hendrik Haase
463ac73b69
Use http --ignore-stdin 2020-11-02 17:33:25 +01:00
Sven-Hendrik Haase
3c58c3c471
Fix httpie call 2020-11-02 17:24:42 +01:00
Sven-Hendrik Haase
90b3a2e66b
Remove orphan upload stage 2020-11-02 17:18:06 +01:00
Sven-Hendrik Haase
b5a8800a6f Merge branch 'replacePublishWithKaniko' into 'master'
Replace publish with multi-destination kaniko

See merge request archlinux/archlinux-docker!46
2020-11-02 16:13:34 +00:00
Justin Kromlinger
1038040aee
Replace $DESTS with $LATEST 2020-11-02 17:04:17 +01:00
Justin Kromlinger
ed4f0cb47e
Replace publish with multi-destination kaniko 2020-11-02 16:49:16 +01:00
Sven-Hendrik Haase
192c28c4f2 Merge branch 'fix/scheduledRelease' into 'master'
Run release on PUBLISH_OFFICIAL_LIBRARY as well

See merge request archlinux/archlinux-docker!45
2020-11-02 14:58:34 +00:00
Justin Kromlinger
9ced99a464 Check for both schedule variables in release in case we add more 2020-11-02 08:42:06 +00:00
Justin Kromlinger
a94af6ecbe Drop PUBLISH_ARCHLINUX_REPOSITORY
This provides publish:offical with BUILD_COMMIT and enables a normal
daily release to archlinux/archlinux on the weekly schedule run.
2020-11-02 08:42:06 +00:00
Sven-Hendrik Haase
c55fdbdda1 Merge branch 'update-dockerhub-readme' into 'master'
Update description on Dockerhub on release

Closes #47

See merge request archlinux/archlinux-docker!44
2020-11-01 23:22:55 +00:00
Kristian Klausen
24b10ce133 Use httpie for the Dockerhub description update logic 2020-11-02 00:18:13 +01:00
Kristian Klausen
ba0b4700fa Update description on Dockerhub on release
Fix #47
2020-11-02 00:17:41 +01:00
Sven-Hendrik Haase
648e0259c8
Rename variables to be more explicit 2020-11-01 23:43:42 +01:00
Sven-Hendrik Haase
798259754f
Move retry to more useful position 2020-11-01 23:35:48 +01:00
Sven-Hendrik Haase
b46d0d43a5
Retry push operations up to 2 times
In the past, we've observed intermittent network issues while communicating with dockerhub and this should help
alleviate that.
2020-11-01 23:29:10 +01:00
Sven-Hendrik Haase
76f871dc8b
Set different schedules for official publish and own repo
This fixes #42.
2020-11-01 23:07:39 +01:00
Sven-Hendrik Haase
db43bb3894 Merge branch 'feature/automatedGitHubPRs' into 'master'
Perform automatic releases to GitHub

Closes #41

See merge request archlinux/archlinux-docker!43
2020-11-01 21:51:43 +00:00
hashworks
8f3eaab36b Remove old tags as recommended by @tianon
> Removing tags here will remove them from the "Supported" section on
> the Hub readme (and will prevent us from spending cycles rebuilding them
> on the official build servers), but the tags will still be available to
> users who want them.
> See https://github.com/docker-library/official-images#library-definition-files
> for more detail on this.
2020-11-01 21:51:43 +00:00
Sven-Hendrik Haase
b8283cff28
Don't run lint for tags 2020-10-28 10:11:04 +01:00
Sven-Hendrik Haase
44b30da60d
Don't run anything on releases branch except for tags 2020-10-28 09:32:30 +01:00
Sven-Hendrik Haase
50de890c48
Don't run lint for releases branch 2020-10-28 09:27:20 +01:00
Sven-Hendrik Haase
d8c04d1c35
Also commit .gitlab-ci.yml to orphaned branch
We have to do this in order to ensure that an updated .gitlab-ci.yml is actually available on every release.
2020-10-28 09:21:19 +01:00
Kristian Klausen
2c964100fa Commit the releases to a separate disconneted branch
We do a release every day so we end up with a lot of "release commits"
(noise) in the master branch, which we don't want.
2020-10-27 18:02:05 +01:00
Arch Linux Docker release bot
4cade873b4 Release 20201025.0.7257 2020-10-25 04:45:23 +00:00
Sven-Hendrik Haase
d7eb0c91c1
Do some post-merge cleanups 2020-10-25 05:28:23 +01:00
Sven-Hendrik Haase
4f076e8624 Merge branch 'add-base-devel-tags' into 'master'
Add base-devel tag

Closes #35

See merge request archlinux/archlinux-docker!39
2020-10-25 04:26:15 +00:00