initial commit
This commit is contained in:
		
							
								
								
									
										130
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										130
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -1,14 +1,75 @@
 | 
				
			|||||||
kind: pipeline
 | 
					# kind: pipeline
 | 
				
			||||||
type: docker
 | 
					# type: docker
 | 
				
			||||||
name: website-testing
 | 
					# name: website-testing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clone:
 | 
					# clone:
 | 
				
			||||||
 | 
					#   disable: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# steps:
 | 
				
			||||||
 | 
					# - name: testing-jekyll
 | 
				
			||||||
 | 
					#   pull: always
 | 
				
			||||||
 | 
					#   image: jekyll/jekyll:latest
 | 
				
			||||||
 | 
					#   commands:
 | 
				
			||||||
 | 
					#   - touch Gemfile.lock
 | 
				
			||||||
 | 
					#   - chmod a+w Gemfile.lock
 | 
				
			||||||
 | 
					#   - chown -R jekyll:jekyll /drone
 | 
				
			||||||
 | 
					#   - gem update --system
 | 
				
			||||||
 | 
					#   - gem install bundler
 | 
				
			||||||
 | 
					#   - bundle install
 | 
				
			||||||
 | 
					#   - bundle exec jekyll build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# - name: ssh commands
 | 
				
			||||||
 | 
					#   image: appleboy/drone-ssh
 | 
				
			||||||
 | 
					#   settings:
 | 
				
			||||||
 | 
					#     host:
 | 
				
			||||||
 | 
					#       from_secret: homelab_host
 | 
				
			||||||
 | 
					#     username:
 | 
				
			||||||
 | 
					#       from_secret: homelab_user
 | 
				
			||||||
 | 
					#     key:
 | 
				
			||||||
 | 
					#       from_secret: homelab_pwd
 | 
				
			||||||
 | 
					#     port: 22
 | 
				
			||||||
 | 
					#     script:
 | 
				
			||||||
 | 
					#       - bash ~/scripts/sthopedevupdate
 | 
				
			||||||
 | 
					#   when:
 | 
				
			||||||
 | 
					#     status:
 | 
				
			||||||
 | 
					#     - success
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# - name: discord
 | 
				
			||||||
 | 
					#   pull: always
 | 
				
			||||||
 | 
					#   image: appleboy/drone-discord
 | 
				
			||||||
 | 
					#   avatar_url: "https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png"
 | 
				
			||||||
 | 
					#   environment:
 | 
				
			||||||
 | 
					#     DISCORD_WEBHOOK_ID:
 | 
				
			||||||
 | 
					#       from_secret: discord_webhook_id
 | 
				
			||||||
 | 
					#     DISCORD_WEBHOOK_TOKEN:
 | 
				
			||||||
 | 
					#       from_secret: discord_webhook_token
 | 
				
			||||||
 | 
					#   settings:
 | 
				
			||||||
 | 
					#     message: >
 | 
				
			||||||
 | 
					#       {{#success build.status}}
 | 
				
			||||||
 | 
					#       ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
 | 
				
			||||||
 | 
					       
 | 
				
			||||||
 | 
					#       📝 Commit by {{commit.author}} on `{{commit.branch}}`:
 | 
				
			||||||
 | 
					#       ```
 | 
				
			||||||
 | 
					#       {{commit.message}}
 | 
				
			||||||
 | 
					#       ```
 | 
				
			||||||
 | 
					#       🌐 <{{ build.link }}>
 | 
				
			||||||
 | 
					#       {{else}}
 | 
				
			||||||
 | 
					#       ❌ Build #{{build.number}} of `{{repo.name}}` failed.
 | 
				
			||||||
 | 
					#       📝 Commit by {{commit.author}} on `{{commit.branch}}`:
 | 
				
			||||||
 | 
					#       ```
 | 
				
			||||||
 | 
					#       {{commit.message}}
 | 
				
			||||||
 | 
					#       ```
 | 
				
			||||||
 | 
					#       🌐 <{{ build.link }}>
 | 
				
			||||||
 | 
					#       {{/success}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pipeline:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  clone:
 | 
				
			||||||
    disable: false
 | 
					    disable: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					  testing-jekyll:
 | 
				
			||||||
- name: testing-jekyll
 | 
					 | 
				
			||||||
  pull: always
 | 
					 | 
				
			||||||
    image: jekyll/jekyll:latest
 | 
					    image: jekyll/jekyll:latest
 | 
				
			||||||
 | 
					    pull: always
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - touch Gemfile.lock
 | 
					      - touch Gemfile.lock
 | 
				
			||||||
      - chmod a+w Gemfile.lock
 | 
					      - chmod a+w Gemfile.lock
 | 
				
			||||||
@@ -18,59 +79,4 @@ steps:
 | 
				
			|||||||
      - bundle install
 | 
					      - bundle install
 | 
				
			||||||
      - bundle exec jekyll build
 | 
					      - bundle exec jekyll build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: ssh commands
 | 
					 | 
				
			||||||
  image: appleboy/drone-ssh
 | 
					 | 
				
			||||||
  settings:
 | 
					 | 
				
			||||||
    host:
 | 
					 | 
				
			||||||
      from_secret: homelab_host
 | 
					 | 
				
			||||||
    username:
 | 
					 | 
				
			||||||
      from_secret: homelab_user
 | 
					 | 
				
			||||||
    key:
 | 
					 | 
				
			||||||
      from_secret: homelab_pwd
 | 
					 | 
				
			||||||
    port: 22
 | 
					 | 
				
			||||||
    script:
 | 
					 | 
				
			||||||
      - bash ~/scripts/sthopedevupdate
 | 
					 | 
				
			||||||
  when:
 | 
					 | 
				
			||||||
    status:
 | 
					 | 
				
			||||||
    - success
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: discord
 | 
					 | 
				
			||||||
  pull: always
 | 
					 | 
				
			||||||
  image: appleboy/drone-discord
 | 
					 | 
				
			||||||
  avatar_url: "https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png"
 | 
					 | 
				
			||||||
  environment:
 | 
					 | 
				
			||||||
    DISCORD_WEBHOOK_ID:
 | 
					 | 
				
			||||||
      from_secret: discord_webhook_id
 | 
					 | 
				
			||||||
    DISCORD_WEBHOOK_TOKEN:
 | 
					 | 
				
			||||||
      from_secret: discord_webhook_token
 | 
					 | 
				
			||||||
  settings:
 | 
					 | 
				
			||||||
    message: >
 | 
					 | 
				
			||||||
      {{#success build.status}}
 | 
					 | 
				
			||||||
      ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
 | 
					 | 
				
			||||||
       
 | 
					 | 
				
			||||||
      📝 Commit by {{commit.author}} on `{{commit.branch}}`:
 | 
					 | 
				
			||||||
      ```
 | 
					 | 
				
			||||||
      {{commit.message}}
 | 
					 | 
				
			||||||
      ```
 | 
					 | 
				
			||||||
      🌐 <{{ build.link }}>
 | 
					 | 
				
			||||||
      {{else}}
 | 
					 | 
				
			||||||
      ❌ Build #{{build.number}} of `{{repo.name}}` failed.
 | 
					 | 
				
			||||||
      📝 Commit by {{commit.author}} on `{{commit.branch}}`:
 | 
					 | 
				
			||||||
      ```
 | 
					 | 
				
			||||||
      {{commit.message}}
 | 
					 | 
				
			||||||
      ```
 | 
					 | 
				
			||||||
      🌐 <{{ build.link }}>
 | 
					 | 
				
			||||||
      {{/success}}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # when:
 | 
					 | 
				
			||||||
  #   event:
 | 
					 | 
				
			||||||
  #   - push
 | 
					 | 
				
			||||||
  #   - tag
 | 
					 | 
				
			||||||
  #   - pull_request
 | 
					 | 
				
			||||||
  #   - deployment
 | 
					 | 
				
			||||||
  #   status:
 | 
					 | 
				
			||||||
  #   - changed
 | 
					 | 
				
			||||||
  #   - failure
 | 
					 | 
				
			||||||
  #   - success
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
		Reference in New Issue
	
	Block a user