diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 1ae23b60..f3c0c13e 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -71,30 +71,30 @@ jobs: - name: Build Cadence server image run: | IMAGE=kenellorando/cadence - declare -a tags + declare -a flags for tag in "${{ env.tags }}" do - tags+=("-t $IMAGE:$tag") + flags+=("-t $IMAGE:$tag") done - docker build ${tags[@]} -f src/cadence.Dockerfile src + docker build ${flags[@]} -f src/cadence.Dockerfile src - name: Build icecast2 image run: | IMAGE=kenellorando/cadence_icecast2 - declare -a tags + declare -a flags for tag in "${{ env.tags }}" do - tags+=("-t $IMAGE:$tag") + flags+=("-t $IMAGE:$tag") done - docker build ${tags[@]} -f src/icecast2.Dockerfile src + docker build ${flags[@]} -f src/icecast2.Dockerfile src - name: Build liquidsoap image run: | IMAGE=kenellorando/cadence_liquidsoap - declare -a tags + declare -a flags for tag in "${{ env.tags }}" do - tags+=("-t $IMAGE:$tag") + flags+=("-t $IMAGE:$tag") done - docker build ${tags[@]} -f src/liquidsoap.Dockerfile src + docker build ${flags[@]} -f src/liquidsoap.Dockerfile src - name: Login to Docker Hub if: env.push == 'true' uses: docker/login-action@v3