smartdns
smartdns copied to clipboard
Github actions for publishing docker image to Github packages
from github official template with x86 & arm build
registry是自带的 无需配置 会自动设为当前工程的package
Nick Peng @.***>于2022年8月21日 周日19:21写道:
@.**** commented on this pull request.
In .github/workflows/docker-publish.yml https://github.com/pymumu/smartdns/pull/1024#discussion_r950829117:
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}if: github.event_name != 'pull_request'uses: ***@***.***with:registry: ${{ env.REGISTRY }}username: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}# Extract metadata (tags, labels) for Docker# https://github.com/docker/metadata-action- name: Extract Docker metadataid: metauses: ***@***.***with:images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}REGISTRY这个是哪里有?
— Reply to this email directly, view it on GitHub https://github.com/pymumu/smartdns/pull/1024#pullrequestreview-1079658070, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACXZRU2PJZCZ4T7TNWAMHLV2IGKZANCNFSM57EUFT3A . You are receiving this because you authored the thread.Message ID: @.***>
定时已删,这个也是 github 预设模板里自带的,猜可能是为了能及时跟上基础系统镜像发布的安全更新
这个要怎么测试?
这个要怎么测试?
先在hub.docker.com注册个用户,把用户名和密码填到github项目的Actions secrets里。将yaml文件保存到.github/workflows/。在action中启用action并运行,然后到hub.docker.com看看有没有镜像和tag。
可以参考一下我的smartdns编译并推送到hub.docker.com的任务https://github.com/PikuZheng/smartdns/blob/master/.github/workflows/deploy-docker.yml
推送到hub.docker.com必须做好版本号管理,不然会出现不是最新版本的情况
请问能否提供一个routeros中设置 docker container环境变量参数的指南@https://github.com/pymumu
之前试过在4011上跑,笔记在https://post.m.smzdm.com/p/am8wz3ek/ ros设置建议去ros那边问,这里没见有用ros container的
已经发布docker镜像pymumu/smartdns