-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
4 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters