build container image in pipeline
Some checks failed
Build Documentation / build (push) Successful in 26s
Build Documentation / docker (push) Failing after 10s

This commit is contained in:
Tobias Brunner 2025-12-05 08:53:31 +01:00
parent 779b890d36
commit 63016c1dd8
Signed by: tobru
SSH key fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ
2 changed files with 37 additions and 1 deletions

View file

@ -30,6 +30,37 @@ jobs:
- name: Upload site artifact
uses: forgejo/upload-artifact@v4
with:
name: docs
name: docs.zip
path: site/
retention-days: 30
docker:
runs-on: ubuntu-latest
needs: build
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Download site artifact
uses: forgejo/download-artifact@v4
with:
name: docs.zip
path: site/
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.CONTAINER_REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ vars.CONTAINER_REGISTRY }}/servala/documentation:latest
cache-from: type=gha
cache-to: type=gha,mode=max