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

workflow changes for wordpress #954

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 0 additions & 74 deletions .github/workflows/image_run_pr_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13776,80 +13776,6 @@ jobs:
-H "Authorization: Bearer ${PULL_COUNTER_MAGIC_TOKEN}" \
-d '{ "rapidfort/wordpress": 1 }' \
https://data-receiver.rapidfort.com/counts/internal_image_pulls
wordpress-ib:
runs-on: ubuntu-22.04

environment: actions-cicd-pr

steps:
- name: Import Coverage Tests
uses: actions/checkout@v4
with:
repository: rapidfort/community-images-core
token: ${{ secrets.COVERAGE_ACCESS_TOKEN }}


- name: Check if test required
id: test-required
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 scripts/tests_required.py wordpress-ib wordpress/ironbank output.txt
cat output.txt >> $GITHUB_OUTPUT

- name: Start minikube

if: ${{ github.event_name == 'pull_request' && steps.test-required.outputs.TEST_REQUIRED == 'yes' }}

with:
memory: 6g
driver: none
uses: medyagh/setup-minikube@master
- name: Check k8s cluster !

if: ${{ github.event_name == 'pull_request' && steps.test-required.outputs.TEST_REQUIRED == 'yes' }}

run: kubectl get pods -A
- name: Setup ubuntu
env:
RF_ACCESS_ID: ${{ secrets.RF_ACCESS_ID }}
RF_SECRET_ACCESS_KEY: ${{ secrets.RF_SECRET_ACCESS_KEY }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RF_PLATFORM_HOST: ${{ secrets.RF_PLATFORM_HOST }}
RF_APP_HOST: ${{ secrets.RF_APP_HOST }}

if: ${{ github.event_name == 'pull_request' && steps.test-required.outputs.TEST_REQUIRED == 'yes' }}

run: ./scripts/github-pipelines/setup.sh

- name: Set RF CLI Path
run: echo "/home/runner/work/community-images/community-images" >> $GITHUB_PATH


- name: Create images for testing PR
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RAPIDFORT_ACCOUNT: ${{ secrets.RAPIDFORT_ACCOUNT }}
IB_DOCKER_USERNAME: ${{ secrets.IB_DOCKER_USERNAME }}
IB_DOCKER_PASSWORD: ${{ secrets.IB_DOCKER_PASSWORD }}
if: ${{ steps.test-required.outputs.TEST_REQUIRED == 'yes' }}
run: python3 community_images/common/orchestrator/main.py hourly_run wordpress/ironbank


- name: Report pulls
env:
PULL_COUNTER_MAGIC_TOKEN: ${{ secrets.PULL_COUNTER_MAGIC_TOKEN }}

if: ${{ github.event_name == 'pull_request' && steps.test-required.outputs.TEST_REQUIRED == 'yes' }}

run: |
curl -X POST \
-H "Accept: application/json" \
-H "Authorization: Bearer ${PULL_COUNTER_MAGIC_TOKEN}" \
-d '{ "rapidfort/wordpress-ib": 1 }' \
https://data-receiver.rapidfort.com/counts/internal_image_pulls
yourls:
runs-on: ubuntu-22.04

Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/image_run_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10799,64 +10799,6 @@ jobs:
-H "Authorization: Bearer ${PULL_COUNTER_MAGIC_TOKEN}" \
-d '{ "rapidfort/wordpress": 1 }' \
https://data-receiver.rapidfort.com/counts/internal_image_pulls
wordpress-ib:
runs-on: ubuntu-22.04

environment: actions-cicd

steps:
- name: Import Coverage Tests
uses: actions/checkout@v4
with:
repository: rapidfort/community-images-core
token: ${{ secrets.COVERAGE_ACCESS_TOKEN }}


- name: Start minikube

with:
memory: 6g
driver: none
uses: medyagh/setup-minikube@master
- name: Check k8s cluster !

run: kubectl get pods -A
- name: Setup ubuntu
env:
RF_ACCESS_ID: ${{ secrets.RF_ACCESS_ID }}
RF_SECRET_ACCESS_KEY: ${{ secrets.RF_SECRET_ACCESS_KEY }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RF_PLATFORM_HOST: ${{ secrets.RF_PLATFORM_HOST }}
RF_APP_HOST: ${{ secrets.RF_APP_HOST }}

run: ./scripts/github-pipelines/setup.sh

- name: Set RF CLI Path
run: echo "/home/runner/work/community-images/community-images" >> $GITHUB_PATH


- name: Create images and publish to dockerhub
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RAPIDFORT_ACCOUNT: ${{ secrets.RAPIDFORT_ACCOUNT }}
IB_DOCKER_USERNAME: ${{ secrets.IB_DOCKER_USERNAME }}
IB_DOCKER_PASSWORD: ${{ secrets.IB_DOCKER_PASSWORD }}
if: github.event_name != 'pull_request'
run: python3 community_images/common/orchestrator/main.py hourly_run wordpress/ironbank --publish


- name: Report pulls
env:
PULL_COUNTER_MAGIC_TOKEN: ${{ secrets.PULL_COUNTER_MAGIC_TOKEN }}

run: |
curl -X POST \
-H "Accept: application/json" \
-H "Authorization: Bearer ${PULL_COUNTER_MAGIC_TOKEN}" \
-d '{ "rapidfort/wordpress-ib": 1 }' \
https://data-receiver.rapidfort.com/counts/internal_image_pulls
yourls:
runs-on: ubuntu-22.04

Expand Down
1 change: 0 additions & 1 deletion builder.lst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ fluentd/ironbank
fluentd/official
microsoft-sql-server-2019/ironbank
elasticsearch/official
wordpress/ironbank
grafana/ironbank
prometheus/ironbank
etcd/ironbank
Expand Down
Loading