Skip to content

✅ Alterando changelog e version #2

✅ Alterando changelog e version

✅ Alterando changelog e version #2

Workflow file for this run

name: CICD_PROD
on:
pull_request:
branches:
- main
types:
- closed
workflow_dispatch:
jobs:
BUILD:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Read version file
id: get_version
run: |
VERSION=$(cat version.txt)
echo "app_version=$VERSION" >> $GITHUB_ENV
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Criação da Imagem docker
uses: docker/[email protected]
with:
context: ./
file: ./Dockerfile
push: true
tags: |
secultceara/mapasculturais:latest
secultceara/mapasculturais:${{ env.app_version }}