Update v0.7.0

This commit is contained in:
Stille 2021-09-21 19:52:57 +08:00
parent b8f05b8c08
commit 2c11be59c5
3 changed files with 3 additions and 41 deletions

View File

@ -1,38 +0,0 @@
name: "build for docker"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set tag
id: tag
run: |
TAG=$(cat Dockerfile | awk 'NR==4 {print $3}')
echo "::set-env name=TAG::$TAG"
- name: Docker Hub login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin
- name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
buildx-version: latest
- name: Build Dockerfile
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: |
docker buildx build \
--platform=linux/amd64,linux/arm/v7,linux/arm64 \
--output "type=image,push=true" \
--file ./Dockerfile . \
--tag $(echo "${DOCKER_USERNAME}" | tr '[:upper:]' '[:lower:]')/${{ github.event.repository.name }}:latest \
--tag $(echo "${DOCKER_USERNAME}" | tr '[:upper:]' '[:lower:]')/${{ github.event.repository.name }}:${TAG}

View File

@ -1,7 +1,7 @@
FROM tindy2013/subconverter
MAINTAINER Stille <stille@ioiox.com>
ENV VERSION 0.6.4
ENV VERSION 0.7.0
WORKDIR /base
RUN apk add tzdata && \

View File

@ -8,7 +8,8 @@
- **修改时区** 镜像默认时区为 Asia/Shanghai
## 更新
**2021-06-09** 更新`v0.6.4`版 docker 镜像,新增同时支持 X86 和 ARM 架构.
- **2021-09-21** 更新`v0.7.0`版 docker 镜像
- **2021-06-09** 更新`v0.6.4`版 docker 镜像,新增同时支持 X86 和 ARM 架构.
## 部署
### docker
@ -31,4 +32,3 @@ https://subto.herokuapp.com
## 参考
GitHub [tindy2013/subconverter](https://github.com/tindy2013/subconverter)