Skip to content

Commit

Permalink
👷 Login to Docker (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
NatoBoram authored Feb 13, 2025
1 parent 9b45736 commit 82e5208
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
docker:
runs-on: ubuntu-latest

if: ${{ github.actor != 'nektos/act' }}
if: github.actor != 'nektos/act'

permissions:
packages: write
Expand All @@ -21,6 +21,13 @@ jobs:
- uses: actions/checkout@v4

- uses: docker/login-action@v3
if: github.actor != 'dependabot[bot]'
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- uses: docker/login-action@v3
if: github.actor != 'dependabot[bot]'
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -30,6 +37,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
natoboram/lmgtfy
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=tag
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- run: pnpm run build
- run: pnpm run check
#- run: pnpm run test:unit
#- run: pnpm run test
#- run: pnpm run test:integration
- run: pnpm run lint

fix:
Expand Down Expand Up @@ -84,6 +84,7 @@ jobs:
skip-empty: true

- run: |
pnpm run sync
pnpm run lint:fix
git add .
- id: commit-lint
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
"build": "vite build",
"clean": "rm -rf .svelte-kit build dist docs node_modules tsconfig.tsbuildinfo",
"preview": "vite preview",
"test": "playwright test",
"test": "pnpm run test:integration && pnpm run test:unit",
"test:integration": "playwright test",
"test:unit": "vitest --sequence.concurrent",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest",
"lint": "prettier --check . && eslint .",
"lint:fix": "eslint --fix . && pnpm run format --list-different",
"format": "prettier --write .",
"docker:build": "docker build --secret id=BUILD_BASE --tag lmgtfy .",
"docker:run": "docker run --publish 127.0.0.1:3000:3000 lmgtfy",
"docker:kill": "docker ps --format '{{.Image}} {{.ID}}' | grep lmgtfy | awk '{print $2}' | xargs docker kill"
"docker:kill": "docker ps --format '{{.Image}} {{.ID}}' | grep lmgtfy | awk '{print $2}' | xargs docker kill",
"sync": "svelte-kit sync"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
Expand Down

0 comments on commit 82e5208

Please sign in to comment.