Skip to content

Commit

Permalink
feat(ci): adapt workflow to deploy pages AFTER build 🏗️
Browse files Browse the repository at this point in the history
also rename mainstream branch to main
  • Loading branch information
aellwein committed Feb 28, 2023
1 parent 608c8ee commit 29fb381
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Docker image
name: Build Images & Deploy GH Pages

on:
workflow_dispatch:
Expand All @@ -21,11 +21,43 @@ jobs:
run: docker buildx create --use

- name: Build & push Docker image (all architectures)
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: |
make build-and-push
- name: Build & push Docker image (amd64 only for develop)
if: github.ref == 'refs/heads/develop'
run: |
make build-local
# Deploy GH Pages
deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v1

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cert-manager-webhook-netcup

Helm chart for installation of cert-manager's webhook for solving DNS challenges using Netcup DNS API.

See this [README.md](https://github.com/aellwein/cert-manager-webhook-netcup/blob/master/README.md)
See this [README.md](https://github.com/aellwein/cert-manager-webhook-netcup/blob/main/README.md)
for configuration and more details.

Release
Expand Down

0 comments on commit 29fb381

Please sign in to comment.