Skip to content

Commit

Permalink
feat: create and push nightly docker images to quay.io (#11000)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored and MyaLongmire committed Jul 6, 2022
1 parent e3331d1 commit 6bfb7fb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -712,6 +738,9 @@ workflows:
- 'static-package-nightly'
- 'arm64-package-nightly'
- 'armhf-package-nightly'
- docker-nightly:
requires:
- 'nightly'
triggers:
- schedule:
cron: "0 7 * * *"
Expand Down
9 changes: 9 additions & 0 deletions docs/NIGHTLIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 6bfb7fb

Please sign in to comment.