Skip to content

Commit

Permalink
Merge pull request #258 from Suwayomi/main
Browse files Browse the repository at this point in the history
build change
  • Loading branch information
Robonau authored Jan 14, 2025
2 parents 0821a2a + 43bd5f7 commit e396968
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64, linux/386, linux/ppc64le, linux/s390x
context: .
build-args: version=${{ needs.GenTag.outputs.value }}
push: false
push: true
tags: |
ghcr.io/${{ needs.RepoName.outputs.value }}:latest,
ghcr.io/${{ needs.RepoName.outputs.value }}:${{ needs.GenTag.outputs.value }},
Expand All @@ -149,5 +149,9 @@ jobs:
with:
target: ghcr.io/${{ needs.RepoName.outputs.value }}:latest
tag: 'slim'
- run: docker tag ghcr.io/${{ needs.RepoName.outputs.value }}:slim ghcr.io/${{ needs.RepoName.outputs.value }}:${{ needs.GenTag.outputs.value }}-slim
- run: docker image push --all-tags "ghcr.io/${{ needs.RepoName.outputs.value }}"
- run: |
docker tag ghcr.io/${{ needs.RepoName.outputs.value }}:slim ghcr.io/${{ needs.RepoName.outputs.value }}:${{ needs.GenTag.outputs.value }}-slim
docker tag ghcr.io/${{ needs.RepoName.outputs.value }}:slim ${{ needs.RepoName.outputs.value }}:slim
docker tag ghcr.io/${{ needs.RepoName.outputs.value }}:slim ${{ needs.RepoName.outputs.value }}:${{ needs.GenTag.outputs.value }}-slim
docker image rm ghcr.io/${{ needs.RepoName.outputs.value }}:latest
docker image push --all-tags "ghcr.io/${{ needs.RepoName.outputs.value }}"
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ USER root
COPY ./build /usr/share/nginx/html
COPY ./default.conf /etc/nginx/conf.d/default.conf
COPY ./set-env-variable.sh /docker-entrypoint.d
RUN chmod +x /docker-entrypoint.d/set-env-variable.sh
RUN dos2unix /docker-entrypoint.d/set-env-variable.sh
RUN chown -R 101 /usr/share/nginx/html
RUN chown -R 101 /etc/nginx/conf.d/default.conf
RUN chmod +x /docker-entrypoint.d/set-env-variable.sh && \
dos2unix /docker-entrypoint.d/set-env-variable.sh && \
chown -R 101 /usr/share/nginx/html && \
chown -R 101 /etc/nginx/conf.d/default.conf
USER 101
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit e396968

Please sign in to comment.