Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
ci: build tag image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Dec 13, 2020
1 parent 6f8ecb7 commit ed88dc9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: Build-Code
name: code
on:
push:
branches:
- master
jobs:
build-code:
build-code-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
- name: build code image
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ehco1996/aioshadowsocks
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,code"
tag_names: true
dockerfile: Dockerfile.code
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build-Runtime
name: runtime
on:
push:
branches:
- build
jobs:
build-runtime:
build-runtime-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish Runtime to Registry
- name: build-runtime-image
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ehco1996/aioshadowsocks
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: tag
on:
push:
tags:
- "*"
jobs:
build-tag-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build tag image
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ehco1996/aioshadowsocks
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_names: true
dockerfile: Dockerfile.code

0 comments on commit ed88dc9

Please sign in to comment.