Skip to content

Commit

Permalink
chore(ci): remove docker deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
simrobin committed Apr 3, 2023
1 parent d9af45a commit ca0e0cd
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 121 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/main.yml
Expand Up @@ -6,7 +6,6 @@ on: [push]

env:
NODE_VERSION: '18.x'
DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_USER }}/about

jobs:
continuous_integration:
Expand Down Expand Up @@ -37,20 +36,3 @@ jobs:

- name: Build app
run: pnpm run build

- name: Package app with Docker
if: github.ref == 'refs/heads/main'
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
pnpm run export
docker build -t ${DOCKER_IMAGE_NAME} .
echo ${DOCKER_PASS} | docker login -u ${DOCKER_USER} --password-stdin
docker push ${DOCKER_IMAGE_NAME}
- name: Deploy app
if: github.ref == 'refs/heads/main'
env:
DEPLOY_URL: ${{ secrets.DEPLOY_URL }}
DEPLOY_CREDENTIALS: ${{ secrets.DEPLOY_CREDENTIALS }}
run: bash script/deploy about "@docker-compose.yml"
3 changes: 0 additions & 3 deletions Dockerfile

This file was deleted.

33 changes: 0 additions & 33 deletions docker-compose.yml

This file was deleted.

62 changes: 0 additions & 62 deletions script/deploy

This file was deleted.

6 changes: 3 additions & 3 deletions script/hooks/pre-commit
Expand Up @@ -37,17 +37,17 @@ npm_check() {

if [[ -n "${PACKAGE_JSON:-}" ]] || [[ -n "${JS_FILES:-}" ]] || [[ -n "${SCSS_FILES:-}" ]]; then
printf "%bChecking node_modules installation%b\n" "${BLUE}" "${RESET}"
run_command npm --silent install --no-audit
run_command pnpm --silent install --no-audit
fi

if [[ -n "${JS_FILES:-}" ]]; then
printf "%bLinting and formating javascript/typescript files%b\n" "${BLUE}" "${RESET}"
run_command npm --silent run lint:file ${JS_FILES[@]}
run_command pnpm --silent run lint:file ${JS_FILES[@]}
fi

if [[ -n "${SCSS_FILES:-}" ]]; then
printf "%bLinting scss files%b\n" "${BLUE}" "${RESET}"
run_command npm --silent run stylelint:file ${SCSS_FILES[@]}
run_command pnpm --silent run stylelint:file ${SCSS_FILES[@]}
fi
}

Expand Down

0 comments on commit ca0e0cd

Please sign in to comment.