Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Docker Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=branch
type=ref,event=pr

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
41 changes: 0 additions & 41 deletions .gitlab-ci.yml

This file was deleted.

10 changes: 4 additions & 6 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# [我的Vim配置](http://tao12345666333.github.com/vim)
[![Build Status](https://travis-ci.org/tao12345666333/vim.png)](https://travis-ci.org/tao12345666333/vim)
[![pipeline status](https://gitlab.com/taobeier/vim/badges/master/pipeline.svg)](https://gitlab.com/taobeier/vim/commits/master)
[![Docker Build Status](https://img.shields.io/docker/build/taobeier/vim.svg)](https://hub.docker.com/r/taobeier/vim/)
[![Docker Build](https://github.com/tao12345666333/vim/actions/workflows/docker-build.yml/badge.svg)](https://github.com/tao12345666333/vim/actions/workflows/docker-build.yml)


## 截图
Expand All @@ -20,10 +18,10 @@
sudo docker run -it -v $PWD:/src --rm taobeier/vim
```

或者使用 GitLab 镜像源, **这里的镜像每周自动构建,会更新所有依赖的包。**
或者使用 GitHub Container Registry:

```
sudo docker run -it -v $PWD:/src --rm registry.gitlab.com/taobeier/vim
sudo docker run -it -v $PWD:/src --rm ghcr.io/tao12345666333/vim
```

## 安装
Expand Down Expand Up @@ -220,7 +218,7 @@ let g:tagbar_autofocus = 1
" NeoComplCache ------------------------------

" most of them not documented because I'm not sure how they work
" (docs aren't good, had to do a lot of trial and error to make
" (docs aren't good, had to do a lot of trial and error to make
" it play nice)

" Disable AutoComplPop.
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# [My Vim setting](http://tao12345666333.github.com/vim)
[![Build Status](https://travis-ci.org/tao12345666333/vim.png)](https://travis-ci.org/tao12345666333/vim)
[![pipeline status](https://gitlab.com/taobeier/vim/badges/master/pipeline.svg)](https://gitlab.com/taobeier/vim/commits/master)
[![Docker Build Status](https://img.shields.io/docker/build/taobeier/vim.svg)](https://hub.docker.com/r/taobeier/vim/)
[![Docker Build](https://github.com/tao12345666333/vim/actions/workflows/docker-build.yml/badge.svg)](https://github.com/tao12345666333/vim/actions/workflows/docker-build.yml)


## [中文说明](README-zh.md)
Expand All @@ -22,10 +20,10 @@ You can use Docker to try it.
sudo docker run -it -v $PWD:/src --rm taobeier/vim
```

Or use the GitLab registry, **where the image is automatically built weekly and all dependent packages are updated**.
Or use the GitHub Container Registry:

```
sudo docker run -it -v $PWD:/src --rm registry.gitlab.com/taobeier/vim
sudo docker run -it -v $PWD:/src --rm ghcr.io/tao12345666333/vim
```

## Install
Expand Down
Loading