Publish ceph images #1700
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish ceph images | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/main.yml | |
- docker/ceph/aws/aws-cli-configure.sh | |
- 'docker/ceph/**/Dockerfile' | |
- docker/ceph/rpm/set-ceph-repo.sh | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .github/workflows/main.yml | |
- docker/ceph/aws/aws-cli-configure.sh | |
- 'docker/ceph/**/Dockerfile' | |
- docker/ceph/rpm/set-ceph-repo.sh | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
build-ceph-base: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [centos_stream8] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build | |
run: docker build -t docker.io/rhcsdashboard/ceph-base:${{ matrix.os }} -f docker/ceph/centos/Dockerfile ./docker/ceph | |
# - name: Google Chat Notification | |
# uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 | |
# with: | |
# name: Build | |
# url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | |
# status: ${{ job.status }} | |
# if: failure() | |
- name: Push | |
run: | | |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
docker push docker.io/rhcsdashboard/ceph-base:${{ matrix.os }} | |
docker logout | |
build-ceph: | |
needs: build-ceph-base | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
branch: [main, reef, quincy, pacific] | |
name: [ceph, ceph-rpm] | |
include: | |
- name: ceph | |
dir: ceph | |
- name: ceph-rpm | |
dir: ceph/rpm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build | |
run: docker build -t docker.io/rhcsdashboard/${{ matrix.name }}:${{ matrix.branch }} -f docker/${{ matrix.dir }}/${{ matrix.branch_dir}}/Dockerfile ./docker/ceph --build-arg CEPH_RELEASE=${{ matrix.branch }} --build-arg VCS_BRANCH=${{ matrix.branch }} | |
- name: Google Chat Notification | |
uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 | |
with: | |
name: Build | |
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | |
status: ${{ job.status }} | |
if: failure() | |
- name: Push | |
run: | | |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
docker push docker.io/rhcsdashboard/${{ matrix.name }}:${{ matrix.branch }} | |
docker logout | |
build-ceph-e2e: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
branch: [main, reef, quincy, pacific] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build | |
run: docker build -t docker.io/rhcsdashboard/ceph-e2e:${{ matrix.branch }} -f docker/ceph/e2e/Dockerfile ./docker/ceph --build-arg VCS_BRANCH=${{ matrix.branch }} | |
- name: Google Chat Notification | |
uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 | |
with: | |
name: Build | |
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | |
status: ${{ job.status }} | |
if: failure() | |
- name: Push | |
run: | | |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
docker push docker.io/rhcsdashboard/ceph-e2e:${{ matrix.branch }} | |
docker logout |