Skip to content

Commit

Permalink
use find-latest-tag@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed May 15, 2021
1 parent d4f0447 commit 769b653
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}

-
name: Get latest tag
uses: oprypin/find-latest-tag@v1
with:
repository: moficodes/ibmcloud-kubernetes-admin # The repository to scan.
releases-only: true # We know that all relevant tags have a GitHub release for them.
id: tag # The step ID to refer to later.
-
name: build-and-push-kubeadmin
uses: docker/build-push-action@v2
with:
file: docker/Dockerfile.Web
context: .
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/kubeadmin:${{ RELEASE_VERSION }}
tags: ${{ secrets.DOCKER_USERNAME }}/kubeadmin:${{ steps.tag.outputs.tag }}

0 comments on commit 769b653

Please sign in to comment.