File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 uses : actions/upload-pages-artifact@v3
3636 with :
3737 path : ' web/build/'
38-
38+
39+ build-backend-image :
40+ name : Build
41+ runs-on : ubuntu-latest
42+ permissions :
43+ packages : write
44+ steps :
45+ - uses : actions/checkout@v4
46+ - name : Log in to the Container registry
47+ uses : docker/login-action@v3.3.0
48+ with :
49+ registry : ghcr.io
50+ username : ${{ github.actor }}
51+ password : ${{ secrets.GITHUB_TOKEN }}
52+
53+ # Needed to use gha caching
54+ - name : Docker Setup Buildx
55+ uses : docker/setup-buildx-action@v3.10.0
56+ with :
57+ driver : docker-container
58+ driver-opts : image=moby/buildkit:master,network=host
59+
60+ - name : Build and push Docker image
61+ uses : docker/build-push-action@v4
62+ if : github.event.repository.fork == false && github.ref_name == 'main'
63+ with :
64+ context : .
65+ file : backend.Containerfile
66+ push : true
67+ cache-from : type=gha
68+ cache-to : type=gha,mode=max
69+ tags : |
70+ ghcr.io/itrooz/modpackcreator/backend:latest
71+
3972 upload_pages :
4073 name : Deploy to GitHub Pages
4174 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments