Skip to content

Commit

Permalink
Removing dependency installation from build-image
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 17, 2024
1 parent d2fbb53 commit af52c89
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Node.js dependencies
run: npm install

- name: Run webpack
run: npx webpack

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/deploy-home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:

jobs:
deploy-home-k3s:
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -40,6 +44,13 @@ jobs:
# install cloudflared
sudo apt-get update && sudo apt-get install cloudflared
- name: Authenticate with GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Tag and Push Image as Latest
run: |
docker pull ghcr.io/${{ github.repository }}/crank:${{ github.sha }}
Expand Down
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ RUN apk add --no-cache mariadb-connector-c-dev
RUN pip install --no-cache-dir -r requirements.txt
RUN apk del build-deps

# Install Node.js and npm
RUN apk update
RUN apk add nodejs npm

# Install npm dependencies
RUN npm install

# Run Webpack to build the assets
RUN npx webpack

Expand Down

0 comments on commit af52c89

Please sign in to comment.