Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sugar Contribution (#1) #102

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/sugar-commons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci-commons
on:
push:
tags:
- 'v*'
# branches: [ master, dev ]
# pull_request:
# branches: [ master ]
jobs:
docker:
strategy:
fail-fast: false
matrix:
include:
- dockercontext: ./images/permissions
image: sugarcrmdevelopers/sugardockerized
prefix: permissions-
- dockercontext: ./images/testsmtp
image: sugarcrmdevelopers/sugardockerized
prefix: testsmtp-
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
flavor: |
latest=true
prefix=${{ matrix.prefix }},onlatest=true

- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ matrix.dockercontext }}
push: true
platforms: 'linux/amd64,linux/arm64'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 3 additions & 2 deletions .github/workflows/sugar11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name:
on:
#push:
# branches: [ master, dev ]
pull_request:
branches: [ master ]
push:
tags:
- 'v*'
jobs:
tests:
runs-on: ubuntu-latest
Expand Down
58 changes: 51 additions & 7 deletions .github/workflows/sugar12.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,65 @@
name:
name: ci-v12
on:
#push:
# branches: [ master, dev ]
pull_request:
branches: [ master ]
push:
tags:
- 'v*'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
run: ['stacks/sugar12/php80.yml', 'stacks/sugar12/php80-local-build.yml']
run: ['stacks/sugar12/php80-local-build.yml']
steps:
- run: sudo sysctl -w vm.max_map_count=262144
- run: echo '127.0.0.1 docker.local' | sudo tee -a /etc/hosts
- uses: actions/checkout@v1
- run: cp -r ./tests/web_tests ./data/app/sugar/
- run: ./tests/start.sh ${{ matrix.run }}
- run: ./tests/web_tests.sh ${{ matrix.run }} 11.0 7.4
- run: ./tests/web_tests.sh ${{ matrix.run }} 12.0 8.0
- run: ./tests/stop.sh ${{ matrix.run }}

docker:
strategy:
fail-fast: false
matrix:
include:
- dockercontext: ./images/php/80/apache
image: sugarcrmdevelopers/sugardockerized
prefix: php8.0-apache-
- dockercontext: ./images/php/80/cron
image: sugarcrmdevelopers/sugardockerized
prefix: php8.0-cron-
- dockercontext: ./images/mysql/80
image: sugarcrmdevelopers/sugardockerized
prefix: mysql8.0-
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
flavor: |
latest=true
prefix=${{ matrix.prefix }},onlatest=true

- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ matrix.dockercontext }}
push: true
platforms: 'linux/amd64,linux/arm64'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
71 changes: 71 additions & 0 deletions .github/workflows/sugar13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: ci-v13
on:
push:
tags:
- 'v*'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
run: ['stacks/sugar13/php82-local-build.yml']
steps:
- run: sudo sysctl -w vm.max_map_count=262144
- run: echo '127.0.0.1 docker.local' | sudo tee -a /etc/hosts
- uses: actions/checkout@v1
- run: cp -r ./tests/web_tests ./data/app/sugar/
- run: ./tests/start.sh ${{ matrix.run }}
- run: ./tests/web_tests.sh ${{ matrix.run }} 13.0 8.2
- run: ./tests/stop.sh ${{ matrix.run }}

docker:
strategy:
fail-fast: false
matrix:
include:
- dockercontext: ./images/php/82/apache
image: sugarcrmdevelopers/sugardockerized
prefix: php8.2-apache-
- dockercontext: ./images/php/82/cron
image: sugarcrmdevelopers/sugardockerized
prefix: php8.2-cron-
- dockercontext: ./images/mysql/8032
image: sugarcrmdevelopers/sugardockerized
prefix: mysql8.0.32-
- dockercontext: ./images/permissions
image: sugarcrmdevelopers/sugardockerized
prefix: permissions-
- dockercontext: ./images/testsmtp
image: sugarcrmdevelopers/sugardockerized
prefix: testsmtp-
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
flavor: |
latest=true
prefix=${{ matrix.prefix }},onlatest=true

- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ matrix.dockercontext }}
push: true
platforms: 'linux/amd64,linux/arm64'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
71 changes: 71 additions & 0 deletions .github/workflows/sugar14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: ci-v14
on:
push:
tags:
- 'v*'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
run: ['stacks/sugar14/php83-local-build.yml']
steps:
- run: sudo sysctl -w vm.max_map_count=262144
- run: echo '127.0.0.1 docker.local' | sudo tee -a /etc/hosts
- uses: actions/checkout@v1
- run: cp -r ./tests/web_tests ./data/app/sugar/
- run: ./tests/start.sh ${{ matrix.run }}
- run: ./tests/web_tests.sh ${{ matrix.run }} 14.0 8.3
- run: ./tests/stop.sh ${{ matrix.run }}

docker:
strategy:
fail-fast: false
matrix:
include:
- dockercontext: ./images/php/83/apache
image: sugarcrmdevelopers/sugardockerized
prefix: php8.3-apache-
- dockercontext: ./images/php/83/cron
image: sugarcrmdevelopers/sugardockerized
prefix: php8.3-cron-
- dockercontext: ./images/mysql/830
image: sugarcrmdevelopers/sugardockerized
prefix: mysql8.3.0-
- dockercontext: ./images/permissions
image: sugarcrmdevelopers/sugardockerized
prefix: permissions-
- dockercontext: ./images/testsmtp
image: sugarcrmdevelopers/sugardockerized
prefix: testsmtp-
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
flavor: |
latest=true
prefix=${{ matrix.prefix }},onlatest=true

- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ matrix.dockercontext }}
push: true
platforms: 'linux/amd64,linux/arm64'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 3 additions & 2 deletions .github/workflows/sugar9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name:
on:
#push:
# branches: [ master, dev ]
pull_request:
branches: [ master ]
push:
tags:
- 'v*'
jobs:
tests:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
data
backups
.DS_Store