diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index fb73ce8..ed0bd46 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -1,22 +1,22 @@ -name: publish -on: - push: - branches: - - "master" - workflow_dispatch: - -jobs: - publish-hello-docker-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.MY_TOKEN }} - - name: Build the Docker image - run: | - docker build . --tag ghcr.io/neongamerbot-qk/crc:latest - docker push ghcr.io/neongamerbot-qk/crc:latest +name: publish docker +on: + push: + branches: + - "main" + workflow_dispatch: + +jobs: + publish-docker-image: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.MY_TOKEN }} + - name: Build the Docker image + run: | + docker build . --tag ghcr.io/neongamerbot-qk/crc:latest + docker push ghcr.io/neongamerbot-qk/crc:latest diff --git a/Dockerfile b/Dockerfile index e737313..6870ea5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY package*.json /app LABEL org.opencontainers.image.source https://github.com/NeonGamerBot-QK/crc # RUN npm install # If you are building your code for production -RUN npm ci --omit=dev +RUN npm install --omit=dev COPY . /app EXPOSE 3000 RUN npm run build