Skip to content

Commit

Permalink
Remove links to Docker Hub (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jul 20, 2021
1 parent f4dc152 commit 843860e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
runs-on: ubuntu-20.04
env:
DOCKER_BASE_NAME: ghcr.io/peaceiris/mkdocs-material
# DOCKER_HUB_BASE_NAME: peaceiris/mkdocs-material
steps:
- uses: actions/[email protected]
with:
Expand All @@ -125,34 +124,28 @@ jobs:
export TAG_NAME="latest"
fi
echo "PKG_TAG=${DOCKER_BASE_NAME}:${TAG_NAME}" >> ${GITHUB_ENV}
# echo "HUB_TAG=${DOCKER_HUB_BASE_NAME}:${TAG_NAME}" >> ${GITHUB_ENV}
- name: Build
run: |
docker build . -t "${PKG_TAG}"
# docker tag "${PKG_TAG}" "${HUB_TAG}"
- run: docker images

- name: Get mkdocs-material version
id: get-version
run: |
export MKDOCS_MATERIAL_VERSION=$(docker run --rm --entrypoint=bash "${PKG_TAG}" -c 'pip show mkdocs-material | grep -E ^Version')
echo "::set-output name=version::${MKDOCS_MATERIAL_VERSION}"
- run: echo "${{ steps.get-version.outputs.version }}"

- name: mkdocs build
run: docker-compose run --rm mkdocs mkdocs build --config-file ./mkdocs-sample.yml

- name: Login to Registries
# env:
# DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u peaceiris --password-stdin
# echo "${DOCKER_HUB_TOKEN}" | docker login -u peaceiris --password-stdin
- name: Push to GitHub Packages
if: github.event_name != 'pull_request'
run: docker push "${PKG_TAG}"

# - name: Push to Docker Hub
# if: github.event_name != 'pull_request'
# run: docker push "${HUB_TAG}"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 peaceiris
Copyright (c) 2021 peaceiris

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
[![GitHub Actions status](https://github.com/peaceiris/mkdocs-material-boilerplate/workflows/github%20pages/badge.svg)](https://github.com/peaceiris/mkdocs-material-boilerplate/actions)

[![Netlify Status](https://api.netlify.com/api/v1/badges/9c95ccf4-5c1e-447b-8025-dd0b6f8764a5/deploy-status)](https://app.netlify.com/sites/mkdocs-material/deploys)
[![Docker Hub Build Status](https://img.shields.io/docker/cloud/build/peaceiris/mkdocs-material.svg)](https://hub.docker.com/r/peaceiris/mkdocs-material)

<!-- https://shields.io/ -->

Expand Down
4 changes: 0 additions & 4 deletions docs_sample/getting-started/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
## Public docker image

- [Package mkdocs-material - GitHub](https://github.com/users/peaceiris/packages/container/package/mkdocs-material)
- [peaceiris/mkdocs-material - Docker Hub]

<!-- https://dockeri.co/ -->
[![DockerHub Badge](https://dockeri.co/image/peaceiris/mkdocs-material)][peaceiris/mkdocs-material - Docker Hub]



Expand Down
6 changes: 0 additions & 6 deletions docs_sample/license.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@
[Freepik]: https://www.freepik.com/
[www.flaticon.com]: https://www.flaticon.com/
[CC 3.0 BY]: http://creativecommons.org/licenses/by/3.0/



## Support Author

- [Amazon wish list](http://amzn.asia/ilWK0Yj)

0 comments on commit 843860e

Please sign in to comment.