Skip to content

Commit b92c652

Browse files
committed
Add quay.io as fallback registry
1 parent d77b3c1 commit b92c652

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,34 @@ jobs:
5050
name: Logout of the Docker Registry
5151
run: docker logout "${DOCKER_REGISTRY}"
5252
if: steps.docker-build.outputs.skipped != 'true'
53+
54+
# Quay.io
55+
- id: quayio-docker-build
56+
name: Build the image with '${{ matrix.build_cmd }}'
57+
run: ${{ matrix.build_cmd }}
58+
env:
59+
DOCKER_REGISTRY: quay.io
60+
GH_ACTION: enable
61+
- id: quayio-registry-login
62+
name: Login to the Quay.io Registry
63+
run: |
64+
echo "::add-mask::$QUAYIO_USERNAME"
65+
echo "::add-mask::$QUAYIO_PASSWORD"
66+
docker login -u "$QUAYIO_USERNAME" --password "${QUAYIO_PASSWORD}" "${DOCKER_REGISTRY}"
67+
env:
68+
DOCKER_REGISTRY: quay.io
69+
QUAYIO_USERNAME: ${{ secrets.quayio_username }}
70+
QUAYIO_PASSWORD: ${{ secrets.quayio_password }}
71+
if: steps.docker-build.outputs.skipped != 'true'
72+
- id: quayio-registry-push
73+
name: Push the image
74+
run: ${{ matrix.build_cmd }} --push-only
75+
env:
76+
DOCKER_REGISTRY: quay.io
77+
if: steps.docker-build.outputs.skipped != 'true'
78+
- id: quayio-registry-logout
79+
name: Logout of the Docker Registry
80+
run: docker logout "${DOCKER_REGISTRY}"
81+
env:
82+
DOCKER_REGISTRY: quay.io
83+
if: steps.docker-build.outputs.skipped != 'true'

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010
[![GitHub license](https://img.shields.io/github/license/netbox-community/netbox-docker)][netbox-docker-license]
1111

1212
[The Github repository](netbox-docker-github) houses the components needed to build Netbox as a Docker container.
13-
Images are built using this code and are released to [Docker Hub][netbox-dockerhub] once a day.
13+
Images are built using this code and are released to [Docker Hub][netbox-dockerhub] and [Quay.io][netbox-quayio] once a day.
1414

1515
Do you have any questions?
1616
Before opening an issue on Github, please join the [Network To Code][ntc-slack] Slack and ask for help in our [`#netbox-docker`][netbox-docker-slack] channel.
1717

1818
[github-stargazers]: https://github.com/netbox-community/netbox-docker/stargazers
1919
[github-release]: https://github.com/netbox-community/netbox-docker/releases
2020
[netbox-docker-microbadger]: https://microbadger.com/images/netboxcommunity/netbox
21-
[netbox-dockerhub]: https://hub.docker.com/r/netboxcommunity/netbox/tags/
21+
[netbox-dockerhub]: https://hub.docker.com/r/netboxcommunity/netbox/
2222
[netbox-docker-github]: https://github.com/netbox-community/netbox-docker/
2323
[ntc-slack]: http://slack.networktocode.com/
2424
[netbox-docker-slack]: https://slack.com/app_redirect?channel=netbox-docker&team=T09LQ7E9E
2525
[netbox-docker-license]: https://github.com/netbox-community/netbox-docker/blob/release/LICENSE
26+
[netbox-quayio]: https://quay.io/repository/netboxcommunity/netbox
2627

2728
## Docker Tags
2829

@@ -104,7 +105,7 @@ To check the version installed on your system run `docker --version` and `docker
104105
The `docker-compose.yml` file is prepared to run a specific version of Netbox, instead of `latest`.
105106
To use this feature, set and export the environment-variable `VERSION` before launching `docker-compose`, as shown below.
106107
`VERSION` may be set to the name of
107-
[any tag of the `netboxcommunity/netbox` Docker image on Docker Hub][netbox-dockerhub].
108+
[any tag of the `netboxcommunity/netbox` Docker image on Docker Hub][netbox-dockerhub] or [Quay.io][netbox-quayio].
108109

109110
```bash
110111
export VERSION=v2.7.1

0 commit comments

Comments
 (0)