diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 525f3c3..c401f2c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,11 +24,6 @@ jobs: token: ${{ secrets.GH_TOKEN }} path: homebrewery - - name: Debugging clones - run: | - ls -la . - ls -la homebrewery - - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -42,6 +37,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Getting build time + run: | + echo "CREATED_AT=$(date -u --rfc-3339=seconds)" >> "$GITHUB_ENV" + - name: Build and push uses: docker/build-push-action@v6 with: @@ -50,6 +49,7 @@ jobs: build-args: | VERSION=${{ github.event.release.tag_name }} REVISION=${{ github.sha }} + CREATED_AT=$CREATED_AT tags: | git.morlana.online/${{ github.repository_owner }}/homebrewery:latest git.morlana.online/${{ github.repository_owner }}/homebrewery:${{ github.event.release.tag_name }} diff --git a/Dockerfile b/Dockerfile index dcffe71..f01e195 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,14 +24,14 @@ ARG VERSION ARG REVISION ARG CREATED_AT -LABEL org.opencontainers.image.authors=F.Weber -LABEL org.opencontainers.image.url=https://git.morlana.online/f.weber/homebrewery-docker/src/branch/main/README.md -LABEL org.opencontainers.image.documentation=https://git.morlana.online/f.weber/homebrewery-docker/src/branch/main/README.md -LABEL org.opencontainers.image.source=https://git.morlana.online/f.weber/homebrewery-docker -LABEL org.opencontainers.image.version=${VERSION} -LABEL org.opencontainers.image.revision=${REVISION} -LABEL org.opencontainers.image.licenses=MIT -LABEL org.opencontainers.image.created=${CREATED_AT} +LABEL org.opencontainers.image.authors="F.Weber " +LABEL org.opencontainers.image.url="https://git.morlana.online/f.weber/homebrewery-docker/src/branch/main/README.md" +LABEL org.opencontainers.image.documentation="https://git.morlana.online/f.weber/homebrewery-docker/src/branch/main/README.md" +LABEL org.opencontainers.image.source="https://git.morlana.online/f.weber/homebrewery-docker" +LABEL org.opencontainers.image.version="${VERSION}" +LABEL org.opencontainers.image.revision="${REVISION}" +LABEL org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.created="${CREATED_AT}" # Defining env variables for homebrewery ENV HB_HOST=homebrewery.local.naturalcrit.com:8000 HB_NATURALCRIT_URL=local.naturalcrit.com:8010 HB_SECRET=secret PORT=8000 HB_ENABLE_V3=true HB_ENABLE_THEMES=true HB_LOCAL_ENVIRONMENTS=docker,local HB_PUBLIC_URL=https://homebrewery.naturalcrit.com