feat: create and push nightly docker images to quay.io (#11000)

This commit is contained in:
Joshua Powers 2022-04-26 14:11:01 -06:00 committed by GitHub
parent 6be1507d1e
commit 23bb23d981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -367,6 +367,32 @@ jobs:
--include "*.rpm" \
--include "*.zip" \
--acl public-read
docker-nightly:
machine:
image: ubuntu-2004:current
steps:
- run:
name: login to quay.io
command: docker login --username="${QUAY_USER}" --password="${QUAY_PASS}" quay.io
- run:
name: clone influxdata/influxdata-docker
command: git clone https://github.com/influxdata/influxdata-docker
- run:
name: build and push telegraf:nightly
command: |
cd influxdata-docker/telegraf/nightly
docker build -t telegraf .
docker tag telegraf quay.io/influxdb/telegraf-nightly:latest
docker image ls
docker push quay.io/influxdb/telegraf-nightly:latest
- run:
name: build and push telegraf:nightly-alpine
command: |
cd influxdata-docker/telegraf/nightly/alpine
docker build -t telegraf-alpine .
docker tag telegraf-alpine quay.io/influxdb/telegraf-nightly:alpine
docker image ls
docker push quay.io/influxdb/telegraf-nightly:alpine
package-sign-windows:
executor:
name: win/default
@ -712,6 +738,9 @@ workflows:
- 'static-package-nightly'
- 'arm64-package-nightly'
- 'armhf-package-nightly'
- docker-nightly:
requires:
- 'nightly'
triggers:
- schedule:
cron: "0 7 * * *"

View File

@ -21,3 +21,12 @@ These builds are generated from the master branch each night:
| | | [linux_riscv64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_riscv64.tar.gz) | |
| | | [linux_s390x.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_s390x.tar.gz) | |
| | | [static_linux_amd64.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_static_linux_amd64.tar.gz) | |
Nightly docker images are available on [quay.io](https://quay.io/repository/influxdb/telegraf-nightly?tab=tags):
```shell
# Debian-based image
docker pull quay.io/influxdb/telegraf-nightly:latest
# Alpine-based image
docker pull quay.io/influxdb/telegraf-nightly:alpine
```