diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33af6343..0fa6f6ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,26 +6,30 @@ on: jobs: docker: - runs-on: ubuntu-latest - - steps: - - name: Login to GitHub Container Registry + steps: + # (Test credentials early, befor failing late in the process.) + - name: Login to Gitea Package Registry uses: docker/login-action@v3 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: http://gitea_app:3000 + username: ${{ gitea.actor }} + password: ${{ secrets.TOKEN }} - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2.2' - - run: bundle install - - run: bundle exec jekyll build --trace --future + ruby-version: '3.3.7' + + - 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 uses: docker/setup-buildx-action@v3 @@ -33,12 +37,12 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ gitea.actor }} + password: ${{ secrets.TOKEN }} - name: Build and push uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64 # ,linux/arm64 push: true - tags: ghcr.io/illiumst/website + tags: gitea_app:3000/steffen/website