init
This commit is contained in:
commit
29dba31b0a
3 changed files with 53 additions and 0 deletions
32
.forgejo/workflows/build.yml
Normal file
32
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: host
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.hydrar.de
|
||||||
|
username: ${{ secrets.registry_user }}
|
||||||
|
password: ${{ secrets.registry_password }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: git.hydrar.de/hydra/flutter:latest
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
# Set up new user
|
||||||
|
RUN useradd -ms /bin/bash developer
|
||||||
|
USER developer
|
||||||
|
WORKDIR /home/developer
|
||||||
|
|
||||||
|
# Install flutter dependencies
|
||||||
|
RUN apt-get update && apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 xz-utils zip libglu1-mesa openjdk-8-jdk && apt-get clean
|
||||||
|
|
||||||
|
# Clone the flutter repo
|
||||||
|
RUN git clone https://github.com/flutter/flutter.git /home/developer/flutter
|
||||||
|
ENV PATH "$PATH:/home/developer/flutter/bin"
|
||||||
|
|
||||||
|
# Enable flutter web
|
||||||
|
RUN flutter channel stable
|
||||||
|
RUN flutter config --enable-web
|
||||||
|
RUN flutter upgrade
|
||||||
|
RUN flutter doctor
|
2
README.md
Normal file
2
README.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Flutter
|
||||||
|
Flutter Build Container
|
Loading…
Reference in a new issue