Skip to content

Commit

Permalink
chore(dev-flow): maintain latest changes in main branch
Browse files Browse the repository at this point in the history
get rid of the dev branch
eclipse-tractusx/portal#243
  • Loading branch information
evegufy committed Jun 20, 2024
1 parent 73b3d03 commit 111e36a
Show file tree
Hide file tree
Showing 18 changed files with 48 additions and 51 deletions.
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ updates:
# NuGet
-
package-ecosystem: "nuget"
target-branch: dev
directory: /
labels:
- "dependabot"
Expand All @@ -42,7 +41,6 @@ updates:
# Github Actions
-
package-ecosystem: "github-actions"
target-branch: dev
directory: /
labels:
- "dependabot"
Expand All @@ -56,7 +54,6 @@ updates:
# Docker
-
package-ecosystem: "docker"
target-branch: dev
directory: ./docker/
labels:
- "dependabot"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/administration-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
- 'docker/Dockerfile-administration-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -120,5 +120,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/administration-service-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ name: "CodeQL"

on:
push:
branches: [main, dev]
branches: [main]
paths:
- 'src/**'
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: Check Dependencies

on:
push:
branches: [main, dev]
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iam-seeding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:
- 'docker/Dockerfile-iam-seeding'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ name: "KICS"

on:
push:
branches: [main, dev]
branches: [main]
# pull_request:
# The branches below must be a subset of the branches above
# branches: [main, dev]
# branches: [main]
# paths-ignore:
# - "**/*.md"
# - "**/*.txt"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maintenance-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
- 'docker/Dockerfile-maintenance-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -114,5 +114,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/maintenance-service-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
6 changes: 3 additions & 3 deletions .github/workflows/marketplace-app-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
- 'docker/Dockerfile-marketplace-app-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -119,5 +119,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/marketplace-app-service-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
6 changes: 3 additions & 3 deletions .github/workflows/notification-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:
- 'docker/Dockerfile-notification-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -117,5 +117,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/notification-service-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
6 changes: 3 additions & 3 deletions .github/workflows/portal-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
- 'docker/Dockerfile-portal-migrations'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -114,5 +114,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/portal-migrations-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
2 changes: 1 addition & 1 deletion .github/workflows/pre-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: Pre Checks

on:
push:
branches: [main, dev]
branches: [main]
paths:
- 'src/**'
pull_request:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/processes-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
- 'docker/Dockerfile-processes-worker'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -121,5 +121,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/processes-worker-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
6 changes: 3 additions & 3 deletions .github/workflows/provisioning-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
- 'docker/Dockerfile-provisioning-migrations'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -114,5 +114,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/provisioning-migrations-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
6 changes: 3 additions & 3 deletions .github/workflows/registration-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
- 'docker/Dockerfile-registration-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -118,5 +118,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/registration-service-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
if [[ ${{ steps.rc-check.outputs.rc }} == 'true' ]]; then
echo "branch=release-candidate" >> $GITHUB_OUTPUT
else
echo "branch=dev" >> $GITHUB_OUTPUT
echo "branch=main" >> $GITHUB_OUTPUT
fi
if: steps.hf-check.outputs.hf == 'false'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/services-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
- 'docker/Dockerfile-services-service'

branches:
- 'dev'
- 'main'
workflow_dispatch:

env:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
with:
images: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=dev
type=raw,value=main
type=raw,value=${{ github.sha }}
- name: Build and push Docker image
Expand Down Expand Up @@ -118,5 +118,5 @@ jobs:
--url https://api.github.com/repos/eclipse-tractusx/portal/actions/workflows/services-service-image-update.yml/dispatches \
--header "authorization: Bearer $TOKEN" \
--header "Accept: application/vnd.github.v3+json" \
--data '{"ref":"dev", "inputs": { "new-image":"${{ github.sha }}" }}' \
--data '{"ref":"main", "inputs": { "new-image":"${{ github.sha }}" }}' \
--fail
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
name: Sonarcloud
on:
push:
branches: [main, dev]
branches: [main]
paths:
- 'src/**'
- 'tests/**'
Expand Down
Loading

0 comments on commit 111e36a

Please sign in to comment.