Commit graph

76 commits

Author SHA1 Message Date
Jason Du
5556180ac6
Repo controlled Go version (#6526)
* Repo controlled Go version

Signed-off-by: xdu31 <jasonxdu@amazon.com>

* Bump to go1.21.8 for CVE update

Signed-off-by: xdu31 <jasonxdu@amazon.com>

---------

Signed-off-by: xdu31 <jasonxdu@amazon.com>
2024-03-07 14:23:13 -05:00
Chris O'Haver
ae2bbc29be
1.11.1 release: bump version + add notes (#6273)
* bump version; add notes

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

---------

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2023-08-15 15:30:32 -04:00
Antony Chazapis
7569d132a1
Add support for RISC-V (#6195)
* Add support for RISC-V

Signed-off-by: Antony Chazapis <chazapis@ics.forth.gr>

* Use existing Dockerfile with unstable Debian base images for RISC-V

Signed-off-by: Antony Chazapis <chazapis@ics.forth.gr>

---------

Signed-off-by: Antony Chazapis <chazapis@ics.forth.gr>
2023-07-10 07:49:01 -07:00
Yong Tang
575825a156
Add macOS arm64 binary as part of the release (#5721) 2022-10-26 01:33:20 -04:00
Hu Shuai
c707a4e7c6
Fix small typos and grammar (#4988)
Signed-off-by: Hu Shuai <hus.fnst@fujitsu.com>
2021-11-18 08:39:45 -05:00
Miek Gieben
f48cce67b2
add docker in Makefile.docker (#4864)
This adds the (older) docker stuff back in a new Makefile.docker. Add
.dreck alias to be able to release the docker stuff via a github issue.

See #4858

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-09-14 13:54:22 +02:00
Miek Gieben
df92e8a8ca
Spun out docker (#4859)
* Spun out docker

Remove docker from Makefile.release so we can actually release.
Unify the mips stuff, now that docker is gone.
Update the docs to reflect this.

See #4858

Signed-off-by: Miek Gieben <miek@miek.nl>

* Update test as well

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-09-13 14:47:46 +02:00
Sascha Grunert
1518f26dee
Use docker buildx for release image (#4779)
This allows to choose the correct architecture in the image manifest,
which defaulted to the host system before applying this patch.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-08-04 09:55:39 -07:00
Miek Gieben
1b2f0bef6f
workflow: move committing workflows to schedule (#4529)
This moves all workflows that commit to a schedule, so that it _doesn't_
push into peoples PRs as that enlarges them and is just non-obvious.

They run throughout the week.

Also change the "user" we use for this, so that DCO believes it a real
email address (DCO is pretty stupid here). Update the authors target to
filter out this bot as well.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-18 09:53:46 +01:00
Miek Gieben
f64d06e8b0
Fix release script (#4483)
Move the make syntax out of the shell syntax section and pull it to the
top of the file.

Also add notes on how to test this script. And yes Makefile syntax is
pretty horrible. Testing on a release machine with my personal docker
repo.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-02-24 14:35:20 +01:00
Miek Gieben
527bee5b6d
Add 1.8.2 notes (#4461) 2021-02-12 04:27:21 -08:00
Manuel Rüger
028f0eb331
Makefile.release: Replace manifest-tool with docker manifest (#4421)
This commit replaces `manifest-tool` with `docker manifest`, which should
hopefully provide a better experience for releasing coredns.

In addition it integrates mips64le (since it's supported by `docker
manifest`) in LINUX_ARCHES, so docker images for mips64le are pushed as
well.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-01-28 19:11:38 +01:00
Miek Gieben
95622f4c9a
release (#4414)
* Remove draft draft from notes, and prepare to release

Signed-off-by: Miek Gieben <miek@miek.nl>

* fix time

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove draft=true

Signed-off-by: Miek Gieben <miek@miek.nl>

* Remove manifest-tool installation

This doesn't install cleanly anymore. I've installed manifest-tool in
/usr/bin on the releaser machine; use that instead of building our own
each time.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Check for manifest-tool to be available; otherwise we tag a release and then fail

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-01-20 15:58:46 +01:00
Miek Gieben
2299c5b696
Add make notes target (#4276)
Automatically submitted.
2020-11-11 18:00:28 +00:00
Miek Gieben
1766568398
Bump to version 1.6.9 (#3773)
See #3727 for the details. Copying release notes
verbatim to coredns-1.6.9.md and fix the release script (because
Makefile are stupid). Up version to 1.6.9 here as well.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-03-24 16:26:01 +01:00
Zou Nengren
5adefab053
send token in the header instead of api call (#3764)
Automatically submitted.
2020-03-24 06:22:43 +00:00
Miek Gieben
ff981b1d69 Prepare release: (#3614)
* run Makefile.doc to update to the latest
* add prs and authors to Makefile.release to aid in creating release
  notes. And update the comments in the makefile.
* add 1.6.7 release notes.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-23 07:06:52 -08:00
Dominic Yin
81a54faaeb add mips64le to released ARCH (#3589)
Signed-off-by: Dominic Yin <yindongchao@inspur.com>
2020-01-13 07:19:49 +01:00
Miek Gieben
c95e7f233a
update to latest bot version (#3535)
Loose the colon from the commands to release a new coredns version.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-12-12 15:57:07 +00:00
Miek Gieben
d933f635af
Bump version to 1.5.2 (#2969)
Run through the motions; create manual pages. Run go generate for good
measure. Fix typo in Makefile.release while at it.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-03 19:47:38 +01:00
Miek Gieben
d4d019d749
docs: Makefile.release and Makefile.doc (#2926)
* add metrics for reload
* documented release process better
* run: Makefile.doc all to push reload doc to man-pages

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-06-26 11:18:03 +01:00
Chris O'Haver
7ef4e1be5a manifest-tool doesn't support mips (#2753)
* remove mips from manifest

* derp

* add comment
2019-04-03 07:27:03 +01:00
spigell
b9766ae515 add mips to released ARCH (#2746) 2019-04-01 14:58:56 +01:00
Yong Tang
26e4026ec1 Add GO111MODULE=off for go get manifest-tool (#2691)
to fix issue #2689

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-03-13 18:07:54 +00:00
Miek Gieben
1e9fa297e7 Add release notes into coredns repo (#2645)
* Put release notes in notes subdir

Verbatim copy of the current set of notes on coredns.io. Copy them
here to make them authoritative.

'make sync' on the coredns.io site copies them back in. They need to be
formatted in Hugo style.

Signed-off-by: Miek Gieben <miek@miek.nl>

* pull latest

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-03-03 06:43:09 -08:00
Chris O'Haver
49c776df4c
rename VERBOSE to be more generic (#2172) 2018-10-10 09:39:31 -04:00
Miek Gieben
281c246117
release: drop release/ (#2173)
Drop the release/ dir prefix form the uploaded files.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-09 21:56:28 +01:00
Miek Gieben
ad63cf0b4f
Document updates: (#2075)
Update the how to release notes in Makefile.release
And some little community tweaks in the README.md

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-31 19:28:33 +01:00
Miek Gieben
52147cd657
release: kill sum target (#2069)
Just create the sha256 inline so we know there are there.
Add a 'version' target in Makefile.release that prints the version so we
can double check that easily in the release script.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-29 15:17:32 +01:00
Miek Gieben
eb51e8bac9
Bump version to 1.2.2 (#2067)
* Bump version to 1.2.2

Release 1.2.2

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix filename to what we upload

With ls dir/* the pathname returned are diff. then we with ls dir, fix
how curl is called.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-29 07:51:45 +01:00
Miek Gieben
a21755479d release: split out sha256 upload (#2063)
For the 1.2.1 release we didn't upload the sha256 files. I've added
an echo, but some testing suggests that the files are created, so the
problem lays somewhere else.

Add a new upload section that sets the content type correctly and POST
the files as text/plain.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-28 13:58:35 -07:00
Miek Gieben
78a98ee0e2 release: echo assets (#2060)
help debug why the assets' sha256 files weren't upload to github.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-27 13:33:25 -07:00
Yong Tang
3ca25c1c64 Add exe extension to Windows release binary (#2022)
This fix adds exe extension to Windows release binary.

This fix fixes 2021.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-08-03 17:49:13 +01:00
Miek Gieben
aba0b4e122 release: add sha256sum files (#1991)
Generate the sha256 sum of each asset. These should all be automatically
be uploaded in the github-push target.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-21 08:39:53 -07:00
Miek Gieben
2e322f6e8a
Various improvements in the release documention. (#1961)
Releasing 1.2.0 uncovered some rough edges that need to be documented.
Also fix github-push target and docker login.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-11 09:56:37 +01:00
Miek Gieben
2306721c23 Up release to 1.2.0 (#1958)
Automatically submitted.
2018-07-10 11:28:29 +00:00
Miek Gieben
3b9da82392 release: automate the release (#1935)
* release: automate the release

This PR aims to various pieces into place so we can automate the coredns
release. It needs the script from coredns/release to be installed. Dreck
is to be setup as described in coredns/release/README.md

The release-coredns script can be tested and allows for other branches
than master to be test.

This PR also features some cleanup in the Makefile.release so we don't
call the godep target for each linux release - this speeds it up for
some bit.

Manually running ./release-coredns -t auto-release builds the artifects
for this release, but (of course) doesn't upload anything yet.

Add /release to the OWNERS and allow command to be executed (this still
needs to be tested).

Signed-off-by: Miek Gieben <miek@miek.nl>

* that makefile target doesnt exist anymore

Signed-off-by: Miek Gieben <miek@miek.nl>

* test release for now

Signed-off-by: Miek Gieben <miek@miek.nl>

* Slightly better output

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove again

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-09 20:35:58 -07:00
Yong Tang
c25a2e0fac Replace gh-release with curl (#1896)
* Replace gh-release with curl

This fix tries to address the issue raised in 1895 where
gh-release is deprecated.

As GitHub provides API that could be accessed easily,
and gh-release itself is just a wrapper to the API,
this fix replaces gh-release with the direct interaction
with GitHub API, so that it could be maintained by coredns
team.

This fix fixes 1895.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Added `-o /dev/null`

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-06-24 19:21:58 +01:00
Yong Tang
ec334014d7 Update Makefile.release for docker image build (#1856)
This fix update Makefile.release for docker image build
on different platforms.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-06-05 17:20:38 +01:00
Miek Gieben
74825a46f2 Makefile release: depend on godeps (#1570)
godeps sets the external repos to the correct versions meaning we can
build CoreDNS.
2018-02-28 15:13:46 -05:00
Miek Gieben
ed02f5f2a2 release improvements (#1439)
Last release I forgot steps, put them in Makefile.release. Generating
the manual files will be skipped if 'ronn' can't be found.
2018-01-26 08:57:08 -08:00
Tobias Schmidt
b707438534 Add coredns_build_info metric (#1418)
In order to track the rollout status of CoreDNS versions, add the common
build_info metric.
2018-01-23 20:10:55 +00:00
Francois Tur
08076e5284 Update Makefile.release (#1327) 2017-12-21 15:47:09 +00:00
Miek Gieben
0221f3d83c Makefile.release: allow for other docker registries (#1324)
Default to empty DOCKER var so you wont accidently push to the
production dockerhub. But allow to be overriden to you can push
to your registry. This allows you to re-use the CoreDNS makefiles for
your internal CI/CD.

Hacked Makefile with echos:

make DOCKER=bla -f Makefile.release docker-push
Pushing: 1.0.1
for arch in amd64 arm arm64 ppc64le s390x; do \
    echo docker push bla/coredns:coredns-$arch ;\
done
docker push bla/coredns:coredns-amd64
docker push bla/coredns:coredns-arm
docker push bla/coredns:coredns-arm64
docker push bla/coredns:coredns-ppc64le
docker push bla/coredns:coredns-s390x
echo manifest-tool push from-args --platforms linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x --template bla/coredns:coredns-ARCH --target bla/coredns:1.0.1
manifest-tool push from-args --platforms linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x --template bla/coredns:coredns-ARCH --target bla/coredns:1.0.1
echo manifest-tool push from-args --platforms linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x --template bla/coredns:coredns-ARCH --target bla/coredns:latest
manifest-tool push from-args --platforms linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x --template bla/coredns:coredns-ARCH --target bla/coredns:latest
2017-12-21 10:34:19 -05:00
Miek Gieben
c53968e5c4 build: create correct directory for arch (#1242) 2017-11-16 16:25:08 -05:00
Yong Tang
246d896edd Always use LE for ppc64le. (#1201)
* Use one `PLATFORM` variable to setup the build process

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update Makefile.release

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-11-04 07:41:35 +00:00
Miek Gieben
6bea4cd14e release: fixes to push to docker
Last minute fixes to push to hub.docker.com.
2017-11-03 20:52:53 +00:00
Yong Tang
37e1acf9be Update docker-build steps in Makefile.release (#1200)
* Update docker-build steps in Makefile.release

for different architectures

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update to use `case ... esac` in shell script

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Remove `RUN` cmd in Dockerfile in case of non amd64 CPU

ssl will only be supported on amd64 CPUs for now.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-11-03 20:29:50 +00:00
Miek Gieben
64c3eb1518 Makefile: add Windows target (#1199)
While we at it, why not add a target for Windows as well.

This also introduces a VERBOSE option that defaults to -v, but it empty
when releases so that you can actually see what you're building.

Move an @echo out of shell snippet into the Makefile, as that errored
with @echo: command not found.

Sample run and resulting artifacts:

~~~
% make -f Makefile.release build
% find build -type f -exec file {} \;
build/windows/amd64/coredns: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
build/darwin/amd64/coredns: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS>
build/linux/ppc64le/coredns: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, stripped
build/linux/amd64/coredns: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
build/linux/arm/coredns: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, stripped
build/linux/s390x/coredns: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), statically linked, stripped
build/linux/arm64/coredns: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped

% make -f Makefile.release tar
% find release -type f | sort
release/coredns_0.9.9_darwin_amd64.tgz
release/coredns_0.9.9_linux_amd64.tgz
release/coredns_0.9.9_linux_arm64.tgz
release/coredns_0.9.9_linux_arm.tgz
release/coredns_0.9.9_linux_ppc64le.tgz
release/coredns_0.9.9_linux_s390x.tgz
release/coredns_0.9.9_windows_amd64.tgz
~~~
2017-11-03 09:45:13 -04:00
Miek Gieben
af6086d653
release: use for-loop to minimize duplication (#1196)
* release: use for-loop to minize duplication

Use LINUX_ARCH as the basis for all release.

Fix a few typos along the way.

* remove echo
2017-11-02 21:21:57 +00:00