Skip to content

Commit

Permalink
build: remove build artifacts from version control
Browse files Browse the repository at this point in the history
* react build artifacts (web/ui/static)
  • Loading branch information
JosephKav committed Mar 25, 2024
1 parent 2275723 commit c1727be
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 237 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
with:
node-version: 20

- name: Build web components
run: make web

- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true

- name: Check out code into the Go module directory
uses: actions/checkout@master

- name: Get current date
id: date
run: echo "date=$(date -u +"%FT%TZ")" >> $GITHUB_OUTPUT
Expand All @@ -55,7 +55,7 @@ jobs:
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }}
make
OUTPUT_BINARY=./bin/${{ github.event.release.tag_name }}_${{ matrix.os }}_${{ matrix.arch }}
build
go-build
- name: Upload release asset
id: upload-release-asset
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 20

- name: Build web components
run: make web

- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true

- name: Test
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 20

- name: Build web components
run: make web

- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
check-latest: true
cache: true

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
# Dependency directories
vendor/

# Output of `go build ./cmd/argus`
# Output of `make build`
/argus

/healthcheck
# React build artifacts
/web/ui/static

# Output of `make build-all`
/.build/
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ COPY . /build/
WORKDIR /build/

ARG BUILD_VERSION="development"
RUN make BUILD_VERSION=${BUILD_VERSION} build
RUN chmod 755 argus
RUN chmod 755 healthcheck
RUN make BUILD_VERSION=${BUILD_VERSION} go-build
RUN chmod 755 /build/argus
RUN chmod 755 /build/healthcheck


#########
Expand Down
2 changes: 1 addition & 1 deletion config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ service:
type: github
url: release-argus/argus
dashboard:
icon: https://github.com/release-argus/Argus/raw/master/web/ui/static/favicon.svg
icon: https://raw.githubusercontent.com/release-argus/Argus/master/web/ui/react-app/public/favicon.svg
icon_link-to: https://release-argus.io
web_url: https://github.com/release-argus/Argus/blob/master/CHANGELOG.md
Binary file removed web/ui/static/android-chrome-192x192.png
Binary file not shown.
Binary file removed web/ui/static/android-chrome-512x512.png
Binary file not shown.
Binary file removed web/ui/static/android-chrome-maskable-192x192.png
Binary file not shown.
Binary file removed web/ui/static/android-chrome-maskable-512x512.png
Binary file not shown.
Binary file removed web/ui/static/apple-touch-icon.png
Binary file not shown.
13 changes: 0 additions & 13 deletions web/ui/static/asset-manifest.json

This file was deleted.

Binary file removed web/ui/static/favicon-16x16.png
Binary file not shown.
Binary file removed web/ui/static/favicon-32x32.png
Binary file not shown.
Binary file removed web/ui/static/favicon.ico
Binary file not shown.
73 changes: 0 additions & 73 deletions web/ui/static/favicon.svg

This file was deleted.

1 change: 0 additions & 1 deletion web/ui/static/index.html

This file was deleted.

32 changes: 0 additions & 32 deletions web/ui/static/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions web/ui/static/robots.txt

This file was deleted.

6 changes: 0 additions & 6 deletions web/ui/static/static/css/main.1b99cd11.css

This file was deleted.

1 change: 0 additions & 1 deletion web/ui/static/static/css/main.1b99cd11.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions web/ui/static/static/js/main.0aa23164.js

This file was deleted.

93 changes: 0 additions & 93 deletions web/ui/static/static/js/main.0aa23164.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion web/ui/static/static/js/main.0aa23164.js.map

This file was deleted.

0 comments on commit c1727be

Please sign in to comment.