Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed May 14, 2021
1 parent b95cc5e commit d4f0447
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ 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: build-and-push-kubeadmin
uses: docker/build-push-action@v2
with:
file: docker/Dockerfile.Web
context: .
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/kubeadmin:$GITHUB_REF
tags: ${{ secrets.DOCKER_USERNAME }}/kubeadmin:${{ RELEASE_VERSION }}

0 comments on commit d4f0447

Please sign in to comment.