Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
jm committed Sep 5, 2024
0 parents commit fbcde18
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!assets
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh eol=lf
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
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() }}
11 changes: 11 additions & 0 deletions Dockerfile
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" ]
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Status

# Overview

Dockerized https://github.com/DSpace/Remote-Handle-Resolver
8 changes: 8 additions & 0 deletions scripts/update.tag.bat
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

0 comments on commit fbcde18

Please sign in to comment.