Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
use one ci for tag release
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <[email protected]>
  • Loading branch information
bitsf committed Sep 29, 2020
1 parent c2b79be commit 2f91a72
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,21 @@ jobs:
version: v0.129.0
args: release --rm-dist --release-footer /tmp/release.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# opspresso/action-docker use body of ./target/TAG_NAME as docker tag
# https://github.com/opspresso/action-docker#common-env
- run: mkdir ./target
- run: echo -n '${{ github.ref }}' | sed 's|refs/tags/||' > ./target/TAG_NAME
- name: Docker Build & Push to Docker Hub
uses: opspresso/action-docker@master
with:
args: --docker
env:
USERNAME: '${{ secrets.DOCKER_USER }}'
PASSWORD: '${{ secrets.DOCKER_TOKEN }}'
LATEST: 'false'
23 changes: 0 additions & 23 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 2f91a72

Please sign in to comment.