chore: fix drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
uetchy 2022-01-11 16:11:10 +09:00
parent eceac74e8e
commit e7453daa1a
4 changed files with 1 additions and 69 deletions

View File

@ -7,7 +7,6 @@ steps:
image: plugins/docker image: plugins/docker
settings: settings:
repo: ghcr.io/uetchy/uechi.io repo: ghcr.io/uetchy/uechi.io
cache_from: ghcr.io/uetchy/uechi.io:latest
tags: latest tags: latest
registry: ghcr.io registry: ghcr.io
username: username:

View File

@ -1,17 +0,0 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
time: "20:00"
timezone: Asia/Tokyo
open-pull-requests-limit: 10
ignore:
- dependency-name: textlint
versions:
- 11.7.7
- 11.8.1
- dependency-name: textlint-rule-no-dropping-the-ra
versions:
- 2.0.0

View File

@ -1,45 +0,0 @@
# https://hexo.io/docs/github-pages.html
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache
name: ci
on:
push:
branches:
- master
jobs:
buildAndPush:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/uetchy/uechi.io:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Trigger Watchtower Update
run: |
curl -s -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" https://watchtower.uechi.dev/v1/update

View File

@ -1,6 +1,6 @@
# uechi.io # uechi.io
[![Actions Status: pages](https://github.com/uetchy/uechi.io/workflows/Pages/badge.svg)](https://github.com/uetchy/uechi.io/actions?query=pages) [![Build Status](https://ci.uechi.io/api/badges/uetchy/uechi.io/status.svg)](https://ci.uechi.io/uetchy/uechi.io)
## Build ## Build
@ -14,9 +14,4 @@ yarn build
```bash ```bash
git commit -m "New article" git commit -m "New article"
git push git push
# or
# brew install drone-cli
drone exec --secret-file .drone.secrets
``` ```