Skip to content

Commit

Permalink
change trigger (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
raspreet-vunet authored Jul 24, 2024
1 parent 7f6b1aa commit a1b4f7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: Build Keycloak, Create Release and Publish Docker Image

on:
pull_request:
push:
branches:
- main
types:
- closed
workflow_dispatch:

jobs:
release_and_publish:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -53,7 +48,7 @@ jobs:
context: ./quarkus/container/
file: ./quarkus/container/Dockerfile
push: true
tags: ghcr.io/${{ github.actor }}/washington:${{ steps.tag.outputs.new_tag }}
tags: ghcr.io/${{ github.repository }}:${{ steps.tag.outputs.new_tag }}
build-args: |
KEYCLOAK_VERSION=${{ steps.tag.outputs.new_tag }}
ORG_NAME=${{ github.actor }}
REPOSITORY=${{ github.repository }}
4 changes: 2 additions & 2 deletions quarkus/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build

ARG KEYCLOAK_VERSION 999.0.0-SNAPSHOT
ARG ORG_NAME vunetsystems
ARG KEYCLOAK_DIST=https://github.com/$ORG_NAME/washington/releases/download/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz
ARG REPOSITORY vunetsystems/washington
ARG KEYCLOAK_DIST=https://github.com/$REPOSITORY/releases/download/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz

RUN dnf install -y tar gzip zip

Expand Down

0 comments on commit a1b4f7a

Please sign in to comment.