Maybe build command will work first try?
All checks were successful
Build and Push Next App / build-next (push) Successful in 1m5s
All checks were successful
Build and Push Next App / build-next (push) Successful in 1m5s
This commit is contained in:
50
.gitea/workflows/build-next.yml
Normal file
50
.gitea/workflows/build-next.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Build and Push Next App
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'apps/next/**'
|
||||
- 'packages/ui/**'
|
||||
- 'scripts/build-next-app'
|
||||
- 'tools/**'
|
||||
- 'docker/**'
|
||||
- '.gitea/workflows/build-next.yml'
|
||||
|
||||
jobs:
|
||||
build-next:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create .env file
|
||||
run: |
|
||||
cat > .env <<'EOF'
|
||||
${{ secrets.DOTENV_PROD }}
|
||||
EOF
|
||||
|
||||
- name: Log in to container registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.gbrown.org -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
|
||||
- name: Build app using project script
|
||||
run: |
|
||||
chmod +x ./scripts/build-next-app
|
||||
./scripts/build-next-app
|
||||
|
||||
- name: Show built images
|
||||
run: |
|
||||
docker images
|
||||
|
||||
- name: Tag built image
|
||||
run: |
|
||||
docker tag convexmonorepo-next:latest git.gbrown.org/gib/convexmonorepo-next:${{ gitea.sha }}
|
||||
docker tag convexmonorepo-next:latest git.gbrown.org/gib/convexmonorepo-next:latest
|
||||
|
||||
- name: Push image tags
|
||||
run: |
|
||||
docker push git.gbrown.org/gib/convexmonorepo-next:${{ gitea.sha }}
|
||||
docker push git.gbrown.org/gib/convexmonorepo-next:latest
|
||||
@@ -1,15 +0,0 @@
|
||||
name: Test Runner
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Hello from Gitea Actions"
|
||||
- run: uname -a
|
||||
- run: pwd
|
||||
- run: ls -la
|
||||
- run: docker version
|
||||
- run: docker ps
|
||||
Reference in New Issue
Block a user