Fix CI docker test image
- Lowercase registry organisation name - Always use LibreTime's org dev image for tests - Never build the dev image on forks
This commit is contained in:
parent
276502bac9
commit
610a1d673b
|
@ -96,7 +96,7 @@ jobs:
|
||||||
release: [bionic, buster]
|
release: [bionic, buster]
|
||||||
context: [python_apps/airtime_analyzer, python_apps/api_clients]
|
context: [python_apps/airtime_analyzer, python_apps/api_clients]
|
||||||
|
|
||||||
container: ghcr.io/${{ github.repository_owner }}/libretime-dev:${{ matrix.release }}
|
container: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -20,14 +20,22 @@ jobs:
|
||||||
- distribution: debian
|
- distribution: debian
|
||||||
release: buster
|
release: buster
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_ORG: libretime
|
||||||
|
IMAGE_NAME: libretime-dev
|
||||||
|
|
||||||
|
# See https://github.com/LibreTime/libretime/issues/1216
|
||||||
|
# See https://github.com/LibreTime/libretime/actions/runs/1190504235
|
||||||
|
if: ${{ github.repository_owner == 'LibreTime' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to the Container registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
@ -74,4 +82,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository_owner }}/libretime-dev:${{ matrix.release }}
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_ORG }}/${{ env.IMAGE_NAME }}:${{ matrix.release }}
|
||||||
|
|
Loading…
Reference in New Issue