Skip to content

Commit

Permalink
chore(ci): fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 27, 2023
1 parent 532e61d commit fba0ca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
images: |
name=ghcr.io/${{env.USER}}/${{matrix.path}},enable=true
name=docker.io/${{env.USER}}/${{matrix.path}},enable=true
name=ghcr.io/${{env.USER}}/storage-${{matrix.path}},enable=true
name=docker.io/${{env.USER}}/storage-${{matrix.path}},enable=true
tags: |
type=semver,enable=true,pattern={{major}}
type=semver,enable=true,pattern={{major}}.{{minor}}
Expand All @@ -97,6 +97,8 @@ jobs:
labels: |
org.opencontainers.image.title="alwatr/storage-${{matrix.path}}"
org.opencontainers.image.vendor="Alwatr"
org.opencontainers.image.documentation="https://github.com/Alwatr/storage"
org.opencontainers.image.authors="S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com)"
- name: 🚀 Build and push container image
if: ${{ steps.file_change.outputs.container_folder != 'false' }}
Expand All @@ -109,9 +111,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
BUILD_DATE=${{github.event.repository.updated_at}}
BUILD_REV=${{github.sha}}

# - name: 🏗 Sign the image with GitHub OIDC Token
# if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder != 'false' }}
Expand Down
17 changes: 2 additions & 15 deletions packages/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,5 @@ ENV NGINX_OPEN_FILE_CACHE="max=5000 inactive=1h" \
NGINX_LIMIT_REQ_BURST=1000 \
NGINX_DISABLE_SYMLINKS=if_not_owner

ARG BUILD_REV
ARG BUILD_DATE
# LABEL org.opencontainers.image.title="alwatr/storage-nginx" \
# org.opencontainers.image.description="Serve the content of the Alwatr Storage database extremely quickly with validating the authentication token." \
# org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:2.0.0" \
# org.opencontainers.image.version="4.0.0" \
# org.opencontainers.image.ref.name="2.0.0-nginx1.25.3-alpine3.18-slim" \
# org.opencontainers.image.licenses="MIT" \
# org.opencontainers.image.created=${BUILD_DATE} \
# org.opencontainers.image.revision=${BUILD_REV} \
# org.opencontainers.image.vendor="Alwatr" \
# org.opencontainers.image.source="https://github.com/Alwatr/storage" \
# org.opencontainers.image.url="https://github.com/Alwatr/storage" \
# org.opencontainers.image.documentation="https://github.com/Alwatr/storage" \
# org.opencontainers.image.authors="S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com), S. Amir Mohammad Najafi <[email protected]> (https://njfamirm.ir/)"
LABEL org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-json:2.0.0" \
org.opencontainers.image.documentation="https://github.com/Alwatr/storage" \

0 comments on commit fba0ca4

Please sign in to comment.