Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ygal Blum <[email protected]>
  • Loading branch information
ygalblum committed Jul 4, 2024
1 parent 760d4d4 commit 0f5b6ef
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Release

on:
release:
types:
- published

jobs:
pylint:
uses: ygalblum/slack-server-mock/.github/workflows/pylint.yml@main
pycodestyle:
uses: ygalblum/slack-server-mock/.github/workflows/pycodestyle.yml@main
e2e:
uses: ygalblum/slack-server-mock/.github/workflows/e2e-test.yml@main
prechecks:
needs:
- pylint
- pycodestyle
- e2e
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.pylint.result }}',
'${{ needs.pycodestyle.result }}',
'${{ needs.e2e.result }}',
]) == {'success'}"
release:
needs:
- prechecks
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: slack_server_mock
tags: latest ${{ github.sha }} ${{ github.ref_name }}
containerfiles: |
./Containerfile
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/yblum
username: yblum+slack_server_mock
password: ${{ secrets.QUAY_REGISTRY_PASSWORD }}
...

0 comments on commit 0f5b6ef

Please sign in to comment.