mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 10:15:22 +00:00
Dispatcher service (#70)
* Stop publishing Docker image on Quay Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
7a2dfef43d
commit
3cdecd3e00
14 changed files with 358 additions and 29 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -29,8 +29,6 @@ jobs:
|
|||
echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||
echo ::set-output name=docker_username::librenmsbot
|
||||
echo ::set-output name=docker_image::librenms/librenms
|
||||
echo ::set-output name=quay_username::librenms+travis
|
||||
echo ::set-output name=quay_image::quay.io/librenms/librenms
|
||||
-
|
||||
name: Docker Build
|
||||
run: |
|
||||
|
|
@ -40,30 +38,24 @@ jobs:
|
|||
--build-arg "VERSION=${{ steps.prepare.outputs.version }}" \
|
||||
--tag "${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}" \
|
||||
--tag "${{ steps.prepare.outputs.docker_image }}:latest" \
|
||||
--tag "${{ steps.prepare.outputs.quay_image }}:${{ steps.prepare.outputs.version }}" \
|
||||
--tag "${{ steps.prepare.outputs.quay_image }}:latest" \
|
||||
--file Dockerfile .
|
||||
-
|
||||
name: Docker Login
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
||||
run: |
|
||||
echo "${DOCKER_PASSWORD}" | docker login --username "${{ steps.prepare.outputs.docker_username }}" --password-stdin
|
||||
echo "${QUAY_PASSWORD}" | docker login quay.io --username "${{ steps.prepare.outputs.quay_username }}" --password-stdin
|
||||
-
|
||||
name: Docker Push
|
||||
if: success() && startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
docker push ${{ steps.prepare.outputs.docker_image }}
|
||||
docker push ${{ steps.prepare.outputs.quay_image }}
|
||||
-
|
||||
name: Docker Check Manifest
|
||||
if: always() && startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
docker run --rm mplatform/mquery ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}
|
||||
docker run --rm mplatform/mquery ${{ steps.prepare.outputs.quay_image }}:${{ steps.prepare.outputs.version }}
|
||||
-
|
||||
name: Clear
|
||||
if: always() && startsWith(github.ref, 'refs/tags/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue