Skip to content

Commit

Permalink
Merge pull request #159 from pagarme/release/2.1.0
Browse files Browse the repository at this point in the history
Release 2.1.0
  • Loading branch information
mauriciohaygert authored Mar 22, 2023
2 parents d419141 + e24869f commit 05a4e03
Show file tree
Hide file tree
Showing 52 changed files with 536 additions and 1,404 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CD

on:
push:
branches:
- 'master'
- 'develop'
- 'test'
- 'stg'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
container:
image: docker:rc-git
steps:
-
name: Checkout Code
uses: actions/checkout@v3
-
name: Copy CI files to root
run: |
cd /app
cp Devops/auth.json .
cp Devops/docker-compose.yml .
cp Devops/Dockerfile .
cp Devops/wait-for-mysql.sh .
cp Devops/magento2_module_install.sql .
-
name: Build image base for modifications
run: |
cd /app
ls
docker compose up -d
-
name: Activate and setup Plugin
run: docker ps
-
name: Commit and push Docker image
run: |
sleep 5 && docker stop magento2_bitnami
docker login ${{ secrets.DOCKER_ACCOUNT }} -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker commit magento2_bitnami "${{ secrets.DOCKER_ACCOUNT }}/${{ github.repository }}:${{ github.ref }}"
docker push "${{ secrets.DOCKER_ACCOUNT }}/${{ github.repository }}:${{ github.ref }}"
-
# name: Send deployment webhook to Rancher
# run: |
# BODY='{"push_data":{"tag":"'"${{ github.ref }}"'"},"repository":{"repo_name":"'"${{ secrets.DOCKER_ACCOUNT }}/${{ github.repository }}"'"}}'
# curl -X POST ${{ secrets.RANCHER_STG_DEPLOY_URL }} -H 'Content-Type: application/json' -d "${BODY}"
97 changes: 0 additions & 97 deletions .idea/Pagarme.iml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Loading

0 comments on commit 05a4e03

Please sign in to comment.