Skip to content

Commit

Permalink
fix release docker for tag
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <zziming@vmware.com>
  • Loading branch information
bitsf committed Dec 2, 2020
1 parent 0543296 commit ea6e7f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/release-docker.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,23 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build manager
run: |
mkdir ./target
echo -n "${GITHUB_REF##refs/*/}" > ./target/TAG_NAME
make dist/harbor-operator_linux_amd64/manager
- name: Docker Build & Push to Docker Hub
uses: opspresso/action-docker@master
with:
args: --docker
env:
BUILD_PATH: dist/harbor-operator_linux_amd64
DOCKERFILE: Dockerfile
USERNAME: '${{ secrets.DOCKER_USER }}'
PASSWORD: '${{ secrets.DOCKER_TOKEN }}'
IMAGE_NAME: goharbor/harbor-operator
LATEST: 'false'

0 comments on commit ea6e7f3

Please sign in to comment.