From 2af81315bc77c7ead38c6b36794e4eef2f13c1df Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 28 Jan 2024 10:50:13 +0300 Subject: [PATCH] drone --- .drone.yml | 47 +++++++++++++++++++++++++++++++++++++++ .gitignore | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9b5371a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +--- +kind: pipeline +type: docker +name: build-and-push-develop + +steps: + + - name: docker build an publish + image: docker.struchkov.dev/docker-buildx:latest + environment: + DOCKER_REGISTRY_TOKEN: + from_secret: DOCKER_REGISTRY_TOKEN + DOCKER_REGISTRY_USER: + from_secret: DOCKER_REGISTRY_USER + volumes: + - name: dockersock + path: /var/run + commands: + - sleep 15 + - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin + - echo "$DOCKER_REGISTRY_TOKEN" | docker login hub.docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin + - docker buildx create --use + - docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t "docker.struchkov.dev/transmission-telegram:develop" . + +trigger: + branch: + - drone + +services: + - name: docker + image: hub.docker.struchkov.dev/docker:24.0.7-dind-alpine3.18 + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: + - name: dockersock + temp: {} + +image_pull_secrets: + - DOCKER_AUTH +--- +kind: signature +hmac: 325e607497599b23d1c43d8668ede8f1cd0d5e5cb482aa709cf3164960c74614 + +... diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..94d2e66 --- /dev/null +++ b/.gitignore @@ -0,0 +1,65 @@ +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf +.idea/**/aws.xml +.idea/**/contentModel.xml +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml +.idea/**/gradle.xml +.idea/**/libraries +cmake-build-*/ +.idea/**/mongoSettings.xml +*.iws +out/ +.idea_modules/ +atlassian-ide-plugin.xml +.idea/replstate.xml +.idea/sonarlint/ +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +.idea/httpRequests +.idea/caches/build_file_checksums.ser +*~ +.fuse_hidden* +.directory +.Trash-* +.nfs* +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db +*.stackdump +[Dd]esktop.ini +$RECYCLE.BIN/ +*.cab +*.msi +*.msix +*.msm +*.msp +*.lnk +.DS_Store +.AppleDouble +.LSOverride +Icon +._* +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk