Skip to content

Commit

Permalink
Merge pull request #7 from Screenly/fix-github
Browse files Browse the repository at this point in the history
First step towards GitHub Actions rewrite
  • Loading branch information
vpetersson authored Nov 8, 2024
2 parents d607606 + 674a336 commit 167c1f0
Show file tree
Hide file tree
Showing 10 changed files with 5,127 additions and 5,075 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Build

on:
pull_request:
branches:
- master
- production
push:
branches:
- master
- production
jobs:
deploy:
runs-on: ubuntu-latest

name: Build and generate Artifact
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
docker compose build
# This step should probably be rewritten
- name: Generate
run: |
docker run \
--rm \
sce_webpack:latest \
/bin/bash -c "npx webpack --config webpack.dev.js && npm run teamcity"
- name: Generate
run: |
mkdir artifacts
docker run \
--rm \
-v $(pwd)/artifacts:/app/artifacts:delegated \
sce_webpack:latest \
/bin/bash -c "npm run build && cd dist && zip -r ../artifacts/screenly-chrome-extension.zip *"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ _gulp-version
/popup.html
/dist
/src/test/tests.html
node_modules
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8
FROM node:22

WORKDIR /app
RUN mkdir -p /output
Expand Down
8 changes: 0 additions & 8 deletions ci/step_1.sh

This file was deleted.

11 changes: 0 additions & 11 deletions ci/step_2.sh

This file was deleted.

16 changes: 0 additions & 16 deletions ci/step_3.sh

This file was deleted.

5 changes: 0 additions & 5 deletions ci/step_4.sh

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
webpack:
build: .
Expand Down
Loading

0 comments on commit 167c1f0

Please sign in to comment.