Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
waaaaargh committed Apr 1, 2024
1 parent 8235a2f commit d4a1e66
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/push_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
with:
node-version: 20
name: Setup Node
- run: npm install --include-dev
name: Install dependencies
Expand All @@ -24,7 +26,7 @@ jobs:
- uses: actions/setup-node@v4
name: Setup Node.js
with:
node_version: 20
node-version: 20
- run: npm ci
name: Install dependencies
- run: npm run build
Expand All @@ -33,13 +35,22 @@ jobs:
build_image:
runs-on: ubuntu-latest
needs: ['build', 'test']
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
name: Checkout
- 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@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};

0 comments on commit d4a1e66

Please sign in to comment.