Update .github/workflows/main.yml
This commit is contained in:
parent
0de2eb95de
commit
3c2581322d
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
@ -6,26 +6,30 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
steps:
|
# (Test credentials early, befor failing late in the process.)
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to Gitea Package Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: http://gitea_app:3000
|
||||||
username: ${{ github.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- uses: ruby/setup-ruby@v1
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.2.2'
|
ruby-version: '3.3.7'
|
||||||
- run: bundle install
|
|
||||||
- run: bundle exec jekyll build --trace --future
|
- name: Install GEM bundle
|
||||||
|
run: bundle install
|
||||||
|
|
||||||
|
- name: Build Website using Jekyll
|
||||||
|
run: bundle exec jekyll build --trace --future
|
||||||
|
|
||||||
#- name: Set up QEMU
|
|
||||||
# uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@ -33,12 +37,12 @@ jobs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64 # ,linux/arm64
|
platforms: linux/amd64 # ,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/illiumst/website
|
tags: gitea_app:3000/steffen/website
|
||||||
|
Loading…
x
Reference in New Issue
Block a user