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

Commit

Permalink
Build only on tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto115 committed Sep 14, 2021
1 parent 4adb05b commit 0e49d8d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and push to HUB

on:
push:
branch:
- master
tags:
- '*'

jobs:
build:
Expand All @@ -15,9 +15,9 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# -
# name: Set tag env
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-
name: Set tag env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
-
name: Login to DockerHub
uses: docker/login-action@v1
Expand All @@ -30,5 +30,4 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: catchdigital/awscli:latest
# ,catchdigital/awscli:${{ env.RELEASE_VERSION }}
tags: catchdigital/awscli:latest,catchdigital/awscli:${{ env.RELEASE_VERSION }}

0 comments on commit 0e49d8d

Please sign in to comment.