Skip to content

Commit

Permalink
disable docker push from cirrus
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 11, 2024
1 parent 7cedfdd commit 11f1a19
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ linux_docker_builder:
[ "$TAG" == "master" ] && export TAG=latest
docker build -t $CIRRUS_REPO_FULL_NAME:${TAG}-amd64 . -f Dockerfile
docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
docker push $CIRRUS_REPO_FULL_NAME:${TAG}-amd64
#docker push $CIRRUS_REPO_FULL_NAME:${TAG}-amd64
linuxarmv7_docker_builder:
timeout_in: 120m
Expand All @@ -39,7 +39,7 @@ linuxarmv7_docker_builder:
[ "$TAG" == "master" ] && export TAG=latest
docker build -t $CIRRUS_REPO_FULL_NAME:${TAG}-armv7 . -f Dockerfile.rpi --build-arg ARCH=armv7l --build-arg CROSSCOMPILER=https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%2010.2.0/Raspberry%20Pi%202%2C%203/cross-gcc-10.2.0-pi_2-3.tar.gz --build-arg IMAGE=balenalib/raspberry-pi2
docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
docker push $CIRRUS_REPO_FULL_NAME:${TAG}-armv7
#docker push $CIRRUS_REPO_FULL_NAME:${TAG}-armv7
linuxarmv6_docker_builder:
timeout_in: 120m
Expand All @@ -61,7 +61,7 @@ linuxarmv6_docker_builder:
[ "$TAG" == "master" ] && export TAG=latest
docker build -t $CIRRUS_REPO_FULL_NAME:${TAG}-armv6 . -f Dockerfile.rpi
docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
docker push $CIRRUS_REPO_FULL_NAME:${TAG}-armv6
#docker push $CIRRUS_REPO_FULL_NAME:${TAG}-armv6
linuxarm64_docker_builder:
env:
Expand All @@ -82,7 +82,7 @@ linuxarm64_docker_builder:
[ "$TAG" == "master" ] && export TAG=latest
docker build -t $CIRRUS_REPO_FULL_NAME:${TAG}-arm64 . -f Dockerfile.arm64
docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
docker push $CIRRUS_REPO_FULL_NAME:${TAG}-arm64
#docker push $CIRRUS_REPO_FULL_NAME:${TAG}-arm64
publish_docker_builder:
Expand All @@ -102,4 +102,4 @@ publish_docker_builder:
docker manifest create --amend $CIRRUS_REPO_FULL_NAME:${TAG} $CIRRUS_REPO_FULL_NAME:${TAG}-amd64 $CIRRUS_REPO_FULL_NAME:${TAG}-armv7 $CIRRUS_REPO_FULL_NAME:${TAG}-armv6 $CIRRUS_REPO_FULL_NAME:${TAG}-arm64
docker manifest annotate $CIRRUS_REPO_FULL_NAME:${TAG} $CIRRUS_REPO_FULL_NAME:${TAG}-armv7 --os linux --arch arm --variant v7
docker manifest annotate $CIRRUS_REPO_FULL_NAME:${TAG} $CIRRUS_REPO_FULL_NAME:${TAG}-armv6 --os linux --arch arm --variant v6l
docker manifest push $CIRRUS_REPO_FULL_NAME:${TAG} -p
#docker manifest push $CIRRUS_REPO_FULL_NAME:${TAG} -p
7 changes: 7 additions & 0 deletions .github/workflows/cpp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Publish multiarch image
env:
DOCKER_CLI_EXPERIMENTAL: enabled
Expand Down
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,9 @@ endif()
endif()

#cpack
install (TARGETS ${CMAKE_PROJECT_NAME} RUNTIME DESTINATION .)
install (DIRECTORY html DESTINATION .)
install (FILES config.json DESTINATION .)
install (FILES Procfile DESTINATION .)
install (TARGETS ${CMAKE_PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_PROJECT_NAME})
install (DIRECTORY html DESTINATION ${CMAKE_PROJECT_NAME})
install (FILES config.json DESTINATION ${CMAKE_PROJECT_NAME})
SET(CPACK_GENERATOR "TGZ")
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_BUILD_TYPE})
SET(CPACK_PACKAGE_CONTACT "[email protected]")
Expand Down

0 comments on commit 11f1a19

Please sign in to comment.