Skip to content

Commit

Permalink
yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
aldorea committed Oct 24, 2023
1 parent dea2d9b commit 89d7955
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Get repository name
run: |
repo_full_name="$GITHUB_REPOSITORY"
IFS='/' read -ra repo_parts <<< "$repo_full_name"
repo_name="${repo_parts[1]}"
echo "Repository name: $repo_name"
-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/nestjs-source-template
${{ secrets.DOCKERHUB_USERNAME }}/$repo_name
-
name: Build and push
Expand Down

0 comments on commit 89d7955

Please sign in to comment.