diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 6ac995b..0caca05 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -18,4 +18,4 @@ jobs: - name: Authenticate with registry run: podman login -u srv_container-registry -p ${{ secrets.REGISTRY_TOKEN }} ${{ env.CONTAINER_ADDRESS }} - name: Push image - run: podman push container-registry:0 ${{ env.CONTAINER_ADDRESS }}/container-registry:${{ env.GITHUB_REF_NAME }} + run: podman push container-registry:local ${{ env.CONTAINER_ADDRESS }}/container-registry:${{ env.GITHUB_REF_NAME }} diff --git a/README.md b/README.md index ccc056a..180c71c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ Private container registry to organize self-hosted services. +## Usage + +To start or restart the container: + +```bash +IMAGE_VERSION= ./start.sh +``` + ## Setting up service credentials The `container-registry_auth` volume is pre-seeded with an empty `htpasswd` file that will hold the credentials for registry users. diff --git a/build.sh b/build.sh index a934bf9..5193613 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash image_name=$(jq .service_name ./service.json -r) -image_version=0 +image_version=local podman build \ -t "$image_name:$image_version" \ diff --git a/start.sh b/start.sh index 0ab0f5f..4aebfbc 100755 --- a/start.sh +++ b/start.sh @@ -2,7 +2,7 @@ service_name=$(jq .service_name ./service.json -r) image_name=$service_name -image_version=0 +image_version=${IMAGE_VERSION:-local} auth_volume="$service_name"_auth data_volume="$service_name"_data