diff --git a/.github/workflows/early-access-publish.yml b/.github/workflows/early-access-publish.yml new file mode 100644 index 000000000..9046a1d99 --- /dev/null +++ b/.github/workflows/early-access-publish.yml @@ -0,0 +1,29 @@ +name: early-access-publish + +on: + workflow_dispatch: + push: + branches: + - earl-access +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ghcr.io/generalmagicio/qacc-be:early-access \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 5ef323411..c6b708a58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY tsconfig.json . RUN apk add --update alpine-sdk -RUN apk add git python3 +RUN apk add git python3 curl RUN apk add --no-cache chromium --repository=http://dl-cdn.alpinelinux.org/alpine/v3.18/main RUN npm ci RUN npm i -g ts-node diff --git a/docker-compose.yml b/docker-compose.yml index 690858088..aa41fa0d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: qacc-be-graph-ql1: container_name: qacc-be-graph-ql1 - image: ghcr.io/generalmagicio/qacc-be:staging + image: ghcr.io/generalmagicio/qacc-be:early-access command: npm run start:docker:server environment: - ENVIRONMENT=production @@ -27,7 +27,7 @@ services: qacc-be-graph-ql2: container_name: qacc-be-graph-ql2 - image: ghcr.io/generalmagicio/qacc-be:staging + image: ghcr.io/generalmagicio/qacc-be:early-access command: npm run start:docker:server environment: - ENVIRONMENT=production @@ -53,7 +53,7 @@ services: qacc-be-graph-ql3: container_name: qacc-be-graph-ql3 - image: ghcr.io/generalmagicio/qacc-be:staging + image: ghcr.io/generalmagicio/qacc-be:early-access command: npm run start:docker:server environment: - ENVIRONMENT=production @@ -79,7 +79,7 @@ services: qacc-be-job1: container_name: qacc-be-job1 - image: ghcr.io/generalmagicio/qacc-be:staging + image: ghcr.io/generalmagicio/qacc-be:early-access command: npm run start:docker:server environment: - ENVIRONMENT=production @@ -105,7 +105,7 @@ services: qacc-be-job2: container_name: qacc-be-job2 - image: ghcr.io/generalmagicio/qacc-be:staging + image: ghcr.io/generalmagicio/qacc-be:early-access command: npm run start:docker:server environment: - ENVIRONMENT=production @@ -131,7 +131,7 @@ services: qacc-be-job3: container_name: qacc-be-job3 - image: ghcr.io/generalmagicio/qacc-be:staging + image: ghcr.io/generalmagicio/qacc-be:early-access command: npm run start:docker:server environment: - ENVIRONMENT=production @@ -168,18 +168,19 @@ services: ports: - '6379:6379' -# autoheal: -# image: willfarrell/autoheal:latest -# tty: true -# restart: always -# environment: -# - AUTOHEAL_INTERVAL=30 -# - AUTOHEAL_START_PERIOD=300 -# - AUTOHEAL_DEFAULT_STOP_TIMEOUT=10 -# volumes: -# - /var/run/docker.sock:/var/run/docker.sock -# networks: -# - qacc + autoheal: + container_name: autoheal + image: willfarrell/autoheal:latest + tty: true + restart: always + environment: + - AUTOHEAL_INTERVAL=30 + - AUTOHEAL_START_PERIOD=300 + - AUTOHEAL_DEFAULT_STOP_TIMEOUT=10 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + networks: + - qacc caddy: image: caddy:2-alpine