Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrik committed Apr 10, 2024
1 parent 0eaabd1 commit 6eb18bf
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions .github/workflows/wipac_cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,35 @@ on:

jobs:

keycloak-image-build:
runs-on: ubuntu-latest
outputs:
keycloak-tag: ${{ steps.docker_meta.outputs.tags }}
steps:
- uses: actions/checkout@v3
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/WIPACRepo/keycloak-rest-services
tags: |
type=ref,prefix=test-keycloak-,event=branch
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: resources/keycloak-image/Dockerfile
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}

flake8:
needs: []
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,17 +83,16 @@ jobs:
pip install .
py-tests:
needs: [py-versions]
needs: [py-versions, keycloak-image-build]
runs-on: ubuntu-latest
services:
keycloak:
image: quay.io/keycloak/keycloak:24.0.2
image: ${{ needs.keycloak-image-build.outputs.keycloak-tag }}
env:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HTTP_ENABLED: true
KC_HTTP_RELATIVE_PATH: /auth
options: start-dev
KK_TO_RMQ_URL: rabbitmq
CMD: start-dev
ports:
- 8080:8080
mongo:
Expand Down

0 comments on commit 6eb18bf

Please sign in to comment.