-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and publish ghcr docker image (#5)
- Loading branch information
1 parent
0c43aa5
commit a01a413
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,20 @@ jobs: | |
with: | ||
files: rpm/target/rpm/com.teragrep-k8s_01/RPMS/noarch/com.teragrep-k8s_01-*.noarch.rpm | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lowercase repository name | ||
run: echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV | ||
|
||
- name: 'Build Image' | ||
run: | | ||
docker buildx build --output type=docker --tag ghcr.io/${{ env.REPO_LC }}/app:${{ github.event.release.tag_name }} . | ||
docker push ghcr.io/${{ env.REPO_LC }}/app:${{ github.event.release.tag_name }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM rockylinux:8 | ||
COPY rpm/target/rpm/com.teragrep-k8s_01/RPMS/noarch/com.teragrep-k8s_01-*.rpm /rpm/ | ||
RUN dnf -y install jq java-1.8.0-headless /rpm/*.rpm && yum clean all | ||
VOLUME /opt/teragrep/k8s_01/var | ||
VOLUME /opt/teragrep/k8s_01/etc | ||
WORKDIR /opt/teragrep/k8s_01 | ||
ENTRYPOINT [ "/usr/bin/java", "-jar", "lib/k8s_01.jar" ] |
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