Skip to content

Commit

Permalink
Added Docker Image CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bkataru committed Dec 8, 2023
1 parent a289358 commit 33637de
Show file tree
Hide file tree
Showing 9 changed files with 1,704 additions and 2 deletions.
Empty file modified .devcontainer/postCreate.sh
100644 → 100755
Empty file.
27 changes: 27 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Image CI

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
name: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: repo-basename
run: |
echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT
shell: bash
- name: Docker login
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build -t bkataru/impulses:${{ steps.repo-basename.outputs.value }} .
- name: Push the Docker image
run: docker push bkataru/impulses:${{ steps.repo-basename.outputs.value }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ RUN npm i -g npm@latest && curl --compressed -o- -L https://yarnpkg.com/install.
WORKDIR /workspace
COPY . .

RUN chmod +x .devcontainer/postCreate.sh


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@typescript-eslint/parser": "^6.9.1",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-svelte": "^4.0.0",
"prettier": "^3.0.3",
"prettier-plugin-svelte": "^3.0.3",
"svelte": "^4.2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="https://fav.farm/⚛️" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
Expand Down
5 changes: 5 additions & 0 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { dev } from "$app/environment"

export const title = 'Physics Scribbles'
export const description = 'Just random Physics writings I do in my free time.'
export const url = dev ? 'http://localhost:3000' : 'https://physicsscribbles.github.io'
16 changes: 16 additions & 0 deletions src/lib/images/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/lib/images/svelte-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 33637de

Please sign in to comment.