Skip to content

Merge pull request #5 from ecsistem/ci/cd #3

Merge pull request #5 from ecsistem/ci/cd

Merge pull request #5 from ecsistem/ci/cd #3

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout do Repositório
uses: actions/checkout@v2
- name: Construir a Imagem Docker
run: |
NOME_DA_IMAGEM="${{ github.repository }}"
ETIQUETA_DA_IMAGEM="$(date +%s)"
COMANDO_DE_CONSTRUCAO="docker build . --file Dockerfile --tag $NOME_DA_IMAGEM:$ETIQUETA_DA_IMAGEM"
echo "Construindo imagem Docker: $COMANDO_DE_CONSTRUCAO"
$COMANDO_DE_CONSTRUCAO
- name: Display Image Tag
run: echo "Docker image tag: ${{ github.repository }}:$IMAGE_TAG"

Check failure on line 30 in .github/workflows/CIDocker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CIDocker.yml

Invalid workflow file

You have an error in your yaml syntax on line 30