Fix show password icons #30
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: Build Maven project and Keycloak Docker container | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Build with Maven | |
run: mvn -B package | |
- name: set lower case owner name | |
run: | | |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV} | |
env: | |
OWNER: '${{ github.repository_owner }}' | |
- name: Build docker image | |
run: docker build . -t ghcr.io/${{ env.OWNER_LC }}/ekklesia-keycloak:latest | |
- name: Login to docker registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
if: github.event_name != 'pull_request' | |
- name: Push docker image | |
run: docker push ghcr.io/${{ env.OWNER_LC }}/ekklesia-keycloak:latest | |
if: github.event_name != 'pull_request' | |
- name: Save docker image | |
run: docker save -o ekklesia-keycloak.tar ghcr.io/${{ env.OWNER_LC }}/ekklesia-keycloak:latest | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Keycloak Docker Image | |
path: ekklesia-keycloak.tar | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Keycloak Ekklesia Plugin | |
path: target/keycloak-ekklesia.jar |