Skip to content

Commit

Permalink
Merge pull request #1129 from slntopp/dev
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
dimquaa authored Sep 21, 2023
2 parents 769f801 + 1dfcd81 commit 2c685ca
Show file tree
Hide file tree
Showing 57 changed files with 2,669 additions and 915 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
fetch-depth: 1
- name: Setup Go
uses: WillAbides/setup-go-faster@v1.10.1
uses: WillAbides/setup-go-faster@v1.11.0
with:
go-version: 1.19
- name: Static Check
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4.6.0
uses: docker/metadata-action@v5.0.0
with:
tags: type=raw,value=${{env.IMAGE_TAG}}
images: ${{ env.REGISTRY }}/slntopp/nocloud/base

- name: Log in to the Container registry
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4.2.1
uses: docker/build-push-action@v5.0.0
with:
context: .
file: Dockerfile
Expand All @@ -107,20 +107,20 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4.6.0
uses: docker/metadata-action@v5.0.0
with:
tags: type=raw,value=${{env.IMAGE_TAG}}
images: ${{ env.REGISTRY }}/slntopp/nocloud/${{matrix.tag}}

- name: Log in to the Container registry
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4.2.1
uses: docker/build-push-action@v5.0.0
id: build
with:
context: .
Expand Down
23 changes: 23 additions & 0 deletions Dockerfiles/oauth2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ARG IMAGE_TAG=latest
ARG ARCH=amd64
FROM ghcr.io/slntopp/nocloud/base:${IMAGE_TAG} as builder

RUN CGO_ENABLED=0 GOARCH=${ARCH} go build -ldflags="-s -w" -buildvcs=false ./cmd/oauth2
RUN upx ./oauth2

RUN adduser -SD nocloud

FROM scratch
WORKDIR /
COPY --from=builder /go/src/github.com/slntopp/nocloud/oauth2 /oauth2
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /etc/passwd /etc/passwd

HEALTHCHECK NONE

USER nocloud
EXPOSE 8000
LABEL org.opencontainers.image.source https://github.com/slntopp/nocloud
LABEL nocloud.update "true"

ENTRYPOINT ["/oauth2"]
3 changes: 2 additions & 1 deletion admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@ant-design/icons-vue": "^4.0.6",
"@ant-design/icons": "^2.0.0",
"@ant-design/icons-vue": "^2.0.0",
"@sardinefish/asn1": "^1.0.4",
"ansi-regex": "^6.0.1",
"apexcharts": "^3.41.1",
Expand Down
Loading

0 comments on commit 2c685ca

Please sign in to comment.