Skip to content

Commit

Permalink
ci: Remove peribolos workflows/actions
Browse files Browse the repository at this point in the history
Signed-off-by: SamoKopecky <skopecky@redhat.com>
  • Loading branch information
SamoKopecky committed Jul 18, 2022
1 parent 4500fcd commit 7d257f1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 138 deletions.
26 changes: 0 additions & 26 deletions .github/actions/build-peribolos/action.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,3 @@ jobs:

- name: Build
uses: ./.github/actions/build-controller

build-peribolos:
name: Build peribolos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: ./.github/actions/build-peribolos
30 changes: 0 additions & 30 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,3 @@ jobs:
tag: ${{ github.sha }}
expiration: +1 week
token: ${{ secrets.QUAY_OAUTH_TOKEN }}

build-peribolos:
name: Build and Push Peribolos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: ./.github/actions/build-peribolos
with:
tags: ${{ github.sha }} latest

- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
if: ${{ github.repository == 'operate-first/peribolos-as-a-service'}}
with:
image: peribolos
tags: ${{ github.sha }} latest
registry: quay.io/operate-first
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Set expiration
uses: ./.github/actions/set-expiration
with:
repository: operate-first/peribolos
tag: ${{ github.sha }}
expiration: +1 week
token: ${{ secrets.QUAY_OAUTH_TOKEN }}
72 changes: 0 additions & 72 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,36 +70,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

check-build-peribolos:
name: Build Peribolos
needs: check-release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
id: build
uses: ./.github/actions/build-peribolos

- name: Update comment
uses: peter-evans/create-or-update-comment@v2
if: ${{ always() }}
id: comment
with:
issue-number: ${{ github.event.issue.number }}
comment-id: ${{ needs.check-release.outputs.comment-id }}
body: ${{ steps.build.outcome == 'success' && '🏗️ Peribolos container is buildable' || '💣 Failed to build Peribolos container' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-to-git:
name: Release to Git
needs:
- test
- check-release
- check-build-controller
- check-build-peribolos
runs-on: ubuntu-latest
outputs:
tag: v${{ steps.semantic.outputs.new_release_version }}
Expand Down Expand Up @@ -224,59 +200,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-push-peribolos:
name: Build and Push Peribolos
runs-on: ubuntu-latest
needs:
- check-release
- release-to-git
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.release-to-git.outputs.tag }}

- name: Build
uses: ./.github/actions/build-peribolos
id: build
with:
tags: ${{ github.sha }} ${{ needs.release-to-git.outputs.tag }}

- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
id: push
with:
image: peribolos
tags: ${{ github.sha }} ${{ needs.release-to-git.outputs.tag }}
registry: quay.io/operate-first
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Set expiration
uses: ./.github/actions/set-expiration
with:
repository: operate-first/peribolos
tag: ${{ github.sha }}
expiration: +1 week
token: ${{ secrets.QUAY_OAUTH_TOKEN }}

- name: Update comment
uses: peter-evans/create-or-update-comment@v2
if: ${{ always() }}
id: comment
with:
issue-number: ${{ github.event.issue.number }}
comment-id: ${{ needs.check-release.outputs.comment-id }}
body: ${{ steps.build.outcome == 'success' && steps.push.outcome == 'success' && '🙌 Peribolos container released to Quay' || '💣 Failed to release Peribolos container' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

post-build:
name: Report status and close issue
needs:
- check-release
- build-push-controller
- build-push-peribolos
runs-on: ubuntu-latest
steps:
- name: Update comment
Expand Down

0 comments on commit 7d257f1

Please sign in to comment.