7777 - name : Build initramfs
7878 run : make initramfs
7979
80- - name : Build UKI
80+ - name : Build UKI with secrets
8181 run : |
8282 CMDLINE="console=tty0 console=ttyS0,115200 earlyprintk=ttyS0,115200 consoleblank=0"
8383 echo $CMDLINE > target/cmdline
@@ -87,29 +87,17 @@ jobs:
8787 openssl x509 -in keys/secureboot.pem -out keys/feos.crt -outform DER
8888 make uki
8989
90- - name : Create Dockerfile for nginx container
90+ - name : Build nginx container
91+ run : make nginx
92+
93+ - name : Tag and push Docker image
9194 run : |
92- cat > Dockerfile.nginx << 'EOF'
93- FROM nginx:alpine
94-
95- # Copy the UKI file to nginx html directory
96- COPY target/uki.efi /usr/share/nginx/html/feos.uki
97-
98- # Add MIME type for .uki files
99- RUN echo 'application/efi uki;' >> /etc/nginx/mime.types
95+ # Tag the locally built image with the registry tags
96+ for tag in ${{ steps.meta.outputs.tags }}; do
97+ docker tag feos-nginx $tag
98+ done
10099
101- # Create a simple index page
102- RUN echo '<html><body><h1>FeOS UKI Server</h1><p><a href="/feos.uki">Download FeOS UKI (x86_64)</a></p></body></html>' > /usr/share/nginx/html/index.html
103-
104- EXPOSE 80
105- EOF
106-
107- - name : Build and push Docker image
108- uses : docker/build-push-action@v5
109- with :
110- context : .
111- file : ./Dockerfile.nginx
112- platforms : linux/amd64,linux/arm64
113- push : true
114- tags : ${{ steps.meta.outputs.tags }}
115- labels : ${{ steps.meta.outputs.labels }}
100+ # Push all tags
101+ for tag in ${{ steps.meta.outputs.tags }}; do
102+ docker push $tag
103+ done
0 commit comments