-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jm
committed
Sep 5, 2024
0 parents
commit fbcde18
Showing
6 changed files
with
73 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!assets |
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 @@ | ||
*.sh eol=lf |
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,46 @@ | ||
name: ☃ build-and-publish | ||
on: | ||
push: | ||
branches-ignore: | ||
- '*' | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
env: | ||
IMG_REPO: ghcr.io/mazoea/docker-handle-server | ||
JOBNAME: build-and-test | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: mazoea/ga-maz/start@master | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: pull and build | ||
run: | | ||
TAG=${{ env.IMG_REPO }}:${{ github.ref_name }} | ||
echo "Using TAG:$TAG" | ||
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
docker pull $TAG || true | ||
docker build . -f Dockerfile --tag $TAG --cache-from $TAG | ||
- name: push image | ||
run: | | ||
docker push ${{ env.IMG_REPO }} --all-tags | ||
if: ${{ success() && github.ref_type == 'tag' }} | ||
|
||
- uses: mazoea/ga-maz/end@master | ||
if: ${{ always() }} |
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,11 @@ | ||
FROM alpine:3.8 | ||
|
||
WORKDIR /opt/src/ | ||
|
||
RUN apk update && \ | ||
apk info cloc && \ | ||
apk add cloc | ||
RUN cloc --version | ||
|
||
ENTRYPOINT [ "cloc" ] | ||
CMD [ "--version" ] |
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,5 @@ | ||
# Status | ||
|
||
# Overview | ||
|
||
Dockerized https://github.com/DSpace/Remote-Handle-Resolver |
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,8 @@ | ||
git push origin :latest | ||
git tag -d latest | ||
git tag latest | ||
git push origin master --tags | ||
|
||
IF "%1"=="nopause" GOTO No1 | ||
pause | ||
:No1 |