diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..5fc2003 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,29 @@ +name: Docker build of nginx-keycloak + +on: [push] + +jobs: + + docker-build: + name: Ubuntu 22.04 build of nginx-keycloak + runs-on: ubuntu-22.04 + + steps: + + - name: Check Out Repo + uses: actions/checkout@v2 + + - name: Docker-compose build + run: | + docker compose build + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push nginx image to GitHub Container Registry + run: | + docker push ghcr.io/flavienbwk/nginx-keycloak/nginx-sso:$(grep -oP "(?<=image: ghcr.io/flavienbwk/nginx-keycloak/nginx-sso:).*" docker-compose.yml) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml deleted file mode 100644 index c0f86c5..0000000 --- a/.github/workflows/linux-build.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Linux build of nginx-keycloak - -on: [push] - -jobs: - - build-linux: - name: Ubuntu 22.04 build of nginx-keycloak - runs-on: ubuntu-22.04 - - steps: - - - name: Check Out Repo - uses: actions/checkout@v2 - - - name: Docker-compose build - run: | - docker compose build diff --git a/README.md b/README.md index 89531a2..02b1853 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Nginx Keycloak -[![Docker build](https://github.com/flavienbwk/nginx-keycloak/actions/workflows/linux-build.yml/badge.svg)](https://github.com/flavienbwk/nginx-keycloak/actions/workflows/linux-build.yml) +[![Docker build](https://github.com/flavienbwk/nginx-keycloak/actions/workflows/docker-build.yml/badge.svg)](https://github.com/flavienbwk/nginx-keycloak/actions/workflows/docker-build.yml) [![Test](https://github.com/flavienbwk/nginx-keycloak/actions/workflows/test-keycloak-setup.yml/badge.svg)](https://github.com/flavienbwk/nginx-keycloak/actions/workflows/test-keycloak-setup.yml) Setting NGINX as a reverse proxy with Keycloak SSO in front of your web applications.