Skip to content

Commit

Permalink
Merge pull request #158 from FromDoppler/configure-fromdoppler-github…
Browse files Browse the repository at this point in the history
…-action

chore: configure fromdoppler github action
  • Loading branch information
RodrigoPereyraDiaz authored May 5, 2023
2 parents 2da38ba + 06c99af commit ccff956
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 2,059 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/fromdoppler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: FromDoppler

on:
pull_request:
branches: ["main"]
push:
branches: ["main", "INT"]
tags:
- v*.*.*

jobs:
dotnet:
name: .NET
uses: FromDoppler/.github/.github/workflows/dotnet.yml@main
docker:
if: ${{ github.event_name == 'push' }}
name: Docker
uses: FromDoppler/.github/.github/workflows/continuous-delivery-dockerfile.yml@main
secrets: inherit
with:
dockerfile-path: "Dockerfile"
dockerhub-image-name: "doppler-cd-helper"
10 changes: 0 additions & 10 deletions .gitlint

This file was deleted.

12 changes: 0 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
FROM node:20 AS verify-format
WORKDIR /src
COPY package.json yarn.lock ./
RUN yarn
COPY . .
RUN yarn verify-format

FROM koalaman/shellcheck-alpine:v0.9.0 as verify-sh
WORKDIR /src
COPY ./*.sh ./
RUN shellcheck -e SC1091,SC1090 ./*.sh

FROM mcr.microsoft.com/dotnet/sdk:7.0.203-bullseye-slim AS restore
WORKDIR /src
COPY ./*.sln ./
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ See more information about these topics in

### Run validations in local environment

The source of truth related to the build process is [doppler-jenkins-ci.groovy](./doppler-jenkins-ci.groovy) (a renamed Jenkisfile). It basically runs docker build, so, you can reproduce jenkins' build process running `docker build .` or `sh ./verify-w-docker.sh`.
The source of truth related to the build process is [Dockerfile](./Dockerfile). It basically runs docker build, so, you can reproduce CI build process running `docker build .`.

If you prefer to run these commands without docker, you can read [Dockerfile](./Dockerfile) and follow the steps manually.
207 changes: 0 additions & 207 deletions build-n-publish.sh

This file was deleted.

108 changes: 0 additions & 108 deletions doppler-jenkins-ci.groovy

This file was deleted.

Loading

0 comments on commit ccff956

Please sign in to comment.