3030 type=sha,prefix={{branch}}-
3131 type=raw,value=latest,enable={{is_default_branch}}
3232
33+ - name : Set up Docker Buildx
34+ uses : docker/setup-buildx-action@v3
35+
3336 - name : Install Protobuf Compiler
3437 run : sudo apt-get update && sudo apt-get install protobuf-compiler -y
3538
9295 # Copy the UKI file to nginx html directory
9396 COPY target/uki.efi /usr/share/nginx/html/feos.uki
9497
95- # Create a simple nginx config that serves the UKI file
96- RUN echo 'server {' > /etc/nginx/conf.d/default.conf && \
97- echo ' listen 80;' >> /etc/nginx/conf.d/default.conf && \
98- echo ' server_name localhost;' >> /etc/nginx/conf.d/default.conf && \
99- echo ' location / {' >> /etc/nginx/conf.d/default.conf && \
100- echo ' root /usr/share/nginx/html;' >> /etc/nginx/conf.d/default.conf && \
101- echo ' index index.html;' >> /etc/nginx/conf.d/default.conf && \
102- echo ' }' >> /etc/nginx/conf.d/default.conf && \
103- echo ' location /feos.uki {' >> /etc/nginx/conf.d/default.conf && \
104- echo ' root /usr/share/nginx/html;' >> /etc/nginx/conf.d/default.conf && \
105- echo ' add_header Content-Type application/octet-stream;' >> /etc/nginx/conf.d/default.conf && \
106- echo ' add_header Content-Disposition "attachment; filename=feos.uki";' >> /etc/nginx/conf.d/default.conf && \
107- echo ' }' >> /etc/nginx/conf.d/default.conf && \
108- echo '}' >> /etc/nginx/conf.d/default.conf
109-
11098 # Create a simple index page
111- RUN echo '<html><body><h1>FeOS UKI Server</h1><p><a href="/feos.uki">Download FeOS UKI</a></p></body></html>' > /usr/share/nginx/html/index.html
99+ 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
112100
113101 EXPOSE 80
114102 EOF
@@ -118,6 +106,7 @@ jobs:
118106 with :
119107 context : .
120108 file : ./Dockerfile.nginx
109+ platforms : linux/amd64,linux/arm64
121110 push : true
122111 tags : ${{ steps.meta.outputs.tags }}
123112 labels : ${{ steps.meta.outputs.labels }}
0 commit comments