ci: simple image setup
Some checks failed
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / docs (push) Successful in 22s
Build, Package and Push Images / build (push) Successful in 28s
Build, Package and Push Images / sonarqube (push) Has been skipped
Build, Package and Push Images / build-docs-container (push) Failing after 23s
Build, Package and Push Images / sbom-scan (push) Successful in 31s
Build, Package and Push Images / container-build (push) Successful in 1m12s
Build, Package and Push Images / container-sbom-scan (push) Successful in 49s
Some checks failed
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / docs (push) Successful in 22s
Build, Package and Push Images / build (push) Successful in 28s
Build, Package and Push Images / sonarqube (push) Has been skipped
Build, Package and Push Images / build-docs-container (push) Failing after 23s
Build, Package and Push Images / sbom-scan (push) Successful in 31s
Build, Package and Push Images / container-build (push) Successful in 1m12s
Build, Package and Push Images / container-sbom-scan (push) Successful in 49s
This commit is contained in:
parent
40c9224158
commit
6ebc360d1b
2 changed files with 45 additions and 0 deletions
|
@ -66,6 +66,49 @@ jobs:
|
|||
path: artifacts/${{ env.ALGOLIA_ARTIFACT }}
|
||||
retention-days: 14
|
||||
|
||||
build-docs-container:
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
needs: [ docs ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ github.server_url }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- name: Retrieve docs artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: wiki.zip
|
||||
- name: Unzip wiki.zip into .public
|
||||
run: |
|
||||
mkdir .public
|
||||
unzip wiki.zip -d .public
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Wiki.Dockerfile
|
||||
push: true
|
||||
tags: forge.rainote.dev/${{ github.repository }}:${{ needs.preprocess.outputs.sanitized_branch_name }}-wiki
|
||||
platforms: linux/amd64,linux/arm64
|
||||
- name: Build and push to latest
|
||||
if: github.ref_name == 'master'
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Wiki.Dockerfile
|
||||
push: true
|
||||
tags: forge.rainote.dev/${{ github.repository }}:latest-wiki
|
||||
platforms: linux/amd64, linux/arm64
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
2
Wiki.Dockerfile
Normal file
2
Wiki.Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
FROM nginx
|
||||
COPY .public /usr/share/nginx/html
|
Loading…
Reference in a new issue