Move Dockerfile.armhf to docker directory
This commit is contained in:
parent
8658be004e
commit
1e052bde90
@ -3,6 +3,7 @@
|
|||||||
Dockerfile
|
Dockerfile
|
||||||
Dockerfile.armhf
|
Dockerfile.armhf
|
||||||
.dockerignore
|
.dockerignore
|
||||||
|
docker/
|
||||||
.coveragerc
|
.coveragerc
|
||||||
.eggs
|
.eggs
|
||||||
.github
|
.github
|
||||||
|
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -375,13 +375,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin
|
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin
|
||||||
|
|
||||||
- name: Build and test and push docker image
|
|
||||||
env:
|
|
||||||
IMAGE_NAME: freqtradeorg/freqtrade
|
|
||||||
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
|
|
||||||
run: |
|
|
||||||
build_helpers/publish_docker.sh
|
|
||||||
|
|
||||||
# We need docker experimental to pull the ARM image.
|
# We need docker experimental to pull the ARM image.
|
||||||
- name: Switch docker to experimental
|
- name: Switch docker to experimental
|
||||||
run: |
|
run: |
|
||||||
@ -400,6 +393,13 @@ jobs:
|
|||||||
- name: Available platforms
|
- name: Available platforms
|
||||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||||
|
|
||||||
|
- name: Build and test and push docker image
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: freqtradeorg/freqtrade
|
||||||
|
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
|
||||||
|
run: |
|
||||||
|
build_helpers/publish_docker.sh
|
||||||
|
|
||||||
- name: Build Raspberry docker image
|
- name: Build Raspberry docker image
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: freqtradeorg/freqtrade
|
IMAGE_NAME: freqtradeorg/freqtrade
|
||||||
|
@ -53,6 +53,7 @@ docker images
|
|||||||
docker push ${IMAGE_NAME}
|
docker push ${IMAGE_NAME}
|
||||||
docker push ${IMAGE_NAME}:$TAG_PLOT
|
docker push ${IMAGE_NAME}:$TAG_PLOT
|
||||||
docker push ${IMAGE_NAME}:$TAG
|
docker push ${IMAGE_NAME}:$TAG
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "failed pushing repo"
|
echo "failed pushing repo"
|
||||||
return 1
|
return 1
|
||||||
|
@ -7,7 +7,7 @@ TAG_ORIG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g")
|
|||||||
TAG="${TAG_ORIG}_pi"
|
TAG="${TAG_ORIG}_pi"
|
||||||
|
|
||||||
PI_PLATFORM="linux/arm/v7"
|
PI_PLATFORM="linux/arm/v7"
|
||||||
echo "Running for ${TAG}"
|
echo "Running for ${TAG_ORIG}"
|
||||||
CACHE_TAG=freqtradeorg/freqtrade_cache:${TAG}_cache
|
CACHE_TAG=freqtradeorg/freqtrade_cache:${TAG}_cache
|
||||||
|
|
||||||
# Add commit and commit_message to docker container
|
# Add commit and commit_message to docker container
|
||||||
@ -17,7 +17,7 @@ if [ "${GITHUB_EVENT_NAME}" = "schedule" ]; then
|
|||||||
echo "event ${GITHUB_EVENT_NAME}: full rebuild - skipping cache"
|
echo "event ${GITHUB_EVENT_NAME}: full rebuild - skipping cache"
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--cache-to=type=registry,ref=${CACHE_TAG} \
|
--cache-to=type=registry,ref=${CACHE_TAG} \
|
||||||
-f Dockerfile.armhf \
|
-f docker/Dockerfile.armhf \
|
||||||
--platform ${PI_PLATFORM} \
|
--platform ${PI_PLATFORM} \
|
||||||
-t ${IMAGE_NAME}:${TAG} --push .
|
-t ${IMAGE_NAME}:${TAG} --push .
|
||||||
else
|
else
|
||||||
@ -27,15 +27,15 @@ else
|
|||||||
docker buildx build \
|
docker buildx build \
|
||||||
--cache-from=type=registry,ref=${CACHE_TAG} \
|
--cache-from=type=registry,ref=${CACHE_TAG} \
|
||||||
--cache-to=type=registry,ref=${CACHE_TAG} \
|
--cache-to=type=registry,ref=${CACHE_TAG} \
|
||||||
-f Dockerfile.armhf \
|
-f docker/Dockerfile.armhf \
|
||||||
--platform ${PI_PLATFORM} \
|
--platform ${PI_PLATFORM} \
|
||||||
-t ${IMAGE_NAME}:${TAG} --push .
|
-t ${IMAGE_NAME}:${TAG} --push .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker images
|
docker images
|
||||||
|
|
||||||
docker manifest create freqtradeorg/freqtrade:${TAG}_multi ${IMAGE_NAME}:${TAG_ORIG} ${IMAGE_NAME}:${TAG}
|
docker manifest create freqtradeorg/freqtrade:${TAG_ORIG} ${IMAGE_NAME}:${TAG_ORIG} ${IMAGE_NAME}:${TAG}
|
||||||
docker manifest push freqtradeorg/freqtrade:${TAG}_multi
|
docker manifest push freqtradeorg/freqtrade:${TAG_ORIG}
|
||||||
|
|
||||||
docker images
|
docker images
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user