Fix pipeline file #289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
tags: | ||
- "v*" | ||
env: | ||
IMAGE_NAME: steeven9/fenice2 | ||
jobs: | ||
build-tags: | ||
# Build and push the image with the tag name | ||
uses: steeven9/CICD-template/.github/workflows/docker-build.yml@main | ||
if: github.ref_type == 'tag' | ||
with: | ||
image-name: ${{ jobs.build-tags.env.IMAGE_NAME }}:${{ github.ref_name }} | ||
Check failure on line 19 in .github/workflows/docker-image.yml GitHub Actions / Docker Image CIInvalid workflow file
|
||
push: true | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
build-branches: | ||
# Build all branches but push only in main | ||
uses: steeven9/CICD-template/.github/workflows/docker-build.yml@main | ||
if: github.ref_type == 'branch' | ||
with: | ||
image-name: ${{ jobs.build-branches.env.IMAGE_NAME }}:latest | ||
push: ${{ github.ref_name == 'main' }} | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |