generated from pixx/chirpy-starter
This commit is contained in:
@@ -35,11 +35,14 @@ jobs:
|
|||||||
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
|
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
|
||||||
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
|
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
|
||||||
|
|
||||||
- name: Setup Ruby
|
#- name: Setup Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
# uses: ruby/setup-ruby@v1
|
||||||
with:
|
# with:
|
||||||
ruby-version: 3.3
|
# ruby-version: 3.3
|
||||||
bundler-cache: true
|
# bundler-cache: true
|
||||||
|
- name: Use system Ruby
|
||||||
|
run: |
|
||||||
|
ruby -v || sudo apt update && sudo apt install -y ruby-full
|
||||||
|
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
|
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
|
||||||
@@ -57,7 +60,7 @@ jobs:
|
|||||||
echo "FROM nginx:alpine" > Dockerfile
|
echo "FROM nginx:alpine" > Dockerfile
|
||||||
echo "COPY _site /usr/share/nginx/html" >> Dockerfile
|
echo "COPY _site /usr/share/nginx/html" >> Dockerfile
|
||||||
echo "EXPOSE 80" >> Dockerfile
|
echo "EXPOSE 80" >> Dockerfile
|
||||||
docker build -t ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:${{ gitea.sha }} .
|
docker build -t ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} .
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
run: |
|
run: |
|
||||||
@@ -66,8 +69,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Push Docker image
|
- name: Push Docker image
|
||||||
run: |
|
run: |
|
||||||
docker tag ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:${{ gitea.sha }} \
|
docker tag ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }} \
|
||||||
${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:latest
|
${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:latest
|
||||||
docker push ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:${{ gitea.sha }}
|
docker push ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:${{ gitea.sha }}
|
||||||
docker push ${CI_REGISTRY_IMAGE:-gitea.local:3000/${{ gitea.repository }}}:latest
|
docker push ${CI_REGISTRY_IMAGE:-10.22.16.11:80/${{ gitea.repository }}}:latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user