Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First step towards GitHub Actions rewrite #7

Merged
merged 5 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading