File tree Expand file tree Collapse file tree 2 files changed +79
-0
lines changed Expand file tree Collapse file tree 2 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ubuntu20-user-wa-docker-build 
2+ 
3+ on :
4+   push :
5+     branches :
6+       - ' main' 
7+     tags :
8+       - ' v*' 
9+   pull_request :
10+     branches :
11+       - ' main' 
12+ 
13+ env :
14+   REGISTRY_USER : ${{ github.actor }} 
15+   REGISTRY_PASSWORD : ${{ github.token }} 
16+   IMAGE_REGISTRY : ghcr.io/${{ github.repository_owner }} 
17+ 
18+ jobs :
19+ 
20+   ubuntu-20-user-wa :
21+     runs-on : ubuntu-latest 
22+     steps :
23+ 
24+       - name : Log in to ghcr.io 
25+         uses : 
redhat-actions/[email protected]   26+         with :
27+           username : ${{ env.REGISTRY_USER }} 
28+           password : ${{ env.REGISTRY_PASSWORD }} 
29+           registry : ${{ env.IMAGE_REGISTRY }} 
30+ 
31+       - name : Checkout 
32+         uses : actions/checkout@v3 
33+       
34+       - uses : mr-smithers-excellent/docker-build-push@v5 
35+         name : Build & push Docker image 
36+         with :
37+           image : meta-flutter/ubuntu-20-user-wa 
38+           tags : main 
39+           registry : ghcr.io 
40+           dockerfile : ubuntu-20-user-wa/Dockerfile 
41+           username : ${{ github.actor }} 
42+           password : ${{ secrets.GITHUB_TOKEN }} 
Original file line number Diff line number Diff line change 1+ FROM  ubuntu:20.04
2+ 
3+ ARG  TZ=America/Los_Angeles
4+ ENV  DEBIAN_FRONTEND=noninteractive
5+ ARG  RUNNER_USER_UID=1001
6+ ARG  DOCKER_GROUP_GID=121
7+ 
8+ USER  root
9+ 
10+ RUN  apt-get update
11+ RUN  apt-get install -y locales openssh-client git git-core
12+ RUN  apt-get install -y sudo python3 python3-pip python3-git python3-virtualenv
13+ 
14+ #  Runner user
15+ RUN  adduser --disabled-password --gecos ''  -u $RUNNER_USER_UID dev \
16+     && groupadd docker --gid $DOCKER_GROUP_GID \
17+     && usermod -aG sudo dev \
18+     && usermod -aG docker dev \
19+     && echo "%sudo   ALL=(ALL:ALL) NOPASSWD:ALL"  > /etc/sudoers \
20+     && echo "Defaults env_keep += \" DEBIAN_FRONTEND\" "  >> /etc/sudoers
21+ 
22+ RUN  chown -R dev:dev /home/dev
23+ 
24+ RUN  locale-gen en_US.UTF-8
25+ ENV  LANG=en_US.UTF-8
26+ 
27+ USER  dev
28+ 
29+ WORKDIR  /home/dev
30+ 
31+ # 
32+ #  Install workspace automation
33+ # 
34+ RUN  git clone https://github.com/meta-flutter/workspace-automation.git
35+ WORKDIR  /home/dev/workspace-automation
36+ ENV  PREFER_LLVM=14
37+ RUN  ./flutter_workspace.py
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments