Update .github/workflows/docker.yml
Cette révision appartient à :
@@ -61,21 +61,20 @@ jobs:
|
||||
|
||||
- name: Build & push with registry cache
|
||||
run: |
|
||||
TAGS="\
|
||||
-t jimmygalland/nextcloud:$NC_VERS \
|
||||
-t git.celjim.fr/jimmygalland/nextcloud:$NC_VERS"
|
||||
|
||||
if [ "${{ inputs.latest }}" = "true" ]; then
|
||||
TAGS="$TAGS \
|
||||
-t jimmygalland/nextcloud:latest \
|
||||
-t git.celjim.fr/jimmygalland/nextcloud:latest"
|
||||
fi
|
||||
|
||||
docker buildx build \
|
||||
--push \
|
||||
--build-arg NC_VERS=$NC_VERS \
|
||||
--cache-from type=registry,ref=git.celjim.fr/jimmygalland/nextcloud:buildcache \
|
||||
--cache-to type=registry,ref=git.celjim.fr/jimmygalland/nextcloud:buildcache,mode=max \
|
||||
-t jimmygalland/nextcloud:$NC_VERS \
|
||||
-t git.celjim.fr/jimmygalland/nextcloud:$NC_VERS \
|
||||
$TAGS \
|
||||
./$MAJOR_VERS
|
||||
|
||||
- name: Tag & push latest
|
||||
if: ${{ inputs.latest == 'true' }}
|
||||
run: |
|
||||
docker tag jimmygalland/nextcloud:$NC_VERS jimmygalland/nextcloud:latest
|
||||
docker tag jimmygalland/nextcloud:$NC_VERS git.celjim.fr/jimmygalland/nextcloud:latest
|
||||
|
||||
docker push jimmygalland/nextcloud:latest
|
||||
docker push git.celjim.fr/jimmygalland/nextcloud:latest
|
||||
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur