ci: build app image with full assets
This commit is contained in:
parent
7f4a6c19fb
commit
d825a59e67
41
.github/workflows/build-full-app.yml
vendored
Normal file
41
.github/workflows/build-full-app.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
name: Build Full App Docker Image
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Build Base App Docker Image"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Docker Build & Push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
file: docker/full.Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ghcr.io/ietf-tools/datatracker-app-full:latest
|
10
docker/full.Dockerfile
Normal file
10
docker/full.Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM ghcr.io/ietf-tools/datatracker-app-base:latest
|
||||
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"
|
||||
|
||||
# Fetch all assets via rsync
|
||||
|
||||
COPY docker/scripts/app-rsync-extras.sh /rsync-assets.sh
|
||||
RUN sed -i 's/\r$//' /rsync-assets.sh && \
|
||||
chmod +x /rsync-assets.sh
|
||||
|
||||
RUN bash /rsync-assets.sh
|
|
@ -109,3 +109,8 @@ dest="$DEST_ROOT/archive/id"
|
|||
mkdir -p "$dest"
|
||||
echo "Fetching $dest ..."
|
||||
rsync -auz --info=progress2 rsync.ietf.org::id-archive/ $dest/
|
||||
|
||||
dest="$DEST_ROOT/www6s/proceedings"
|
||||
mkdir -p "$dest"
|
||||
echo "Fetching $dest ..."
|
||||
rsync -auz --info=progress2 rsync.ietf.org::proceedings/ $dest/
|
||||
|
|
Loading…
Reference in a new issue