Skip to content

Commit

Permalink
527 Changed registry (#55)
Browse files Browse the repository at this point in the history
GitHub Registry
  • Loading branch information
mirrodi committed Jul 8, 2024
1 parent 6b310dd commit 0ef8791
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 42 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/publish-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-backend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-backend
push: true
tags: itatm/mobidam:mobidam-sst-management-backend-demo
tags: ghcr.io/it-at-m/mobidam-sst-management-backend:demo

frontend-build-and-docker-push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -114,15 +120,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-frontend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-frontend
push: true
tags: itatm/mobidam:mobidam-sst-management-frontend-demo
tags: ghcr.io/it-at-m/mobidam-sst-management-frontend:demo
28 changes: 20 additions & 8 deletions .github/workflows/publish-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-backend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-backend
push: true
tags: itatm/mobidam:mobidam-sst-management-backend-dev
tags: ghcr.io/it-at-m/mobidam-sst-management-backend:dev

frontend-build-and-docker-push:
runs-on: ubuntu-latest
Expand All @@ -54,15 +60,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Regsitry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-frontend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-frontend
push: true
tags: itatm/mobidam:mobidam-sst-management-frontend-dev
tags: ghcr.io/it-at-m/mobidam-sst-management-frontend:dev
14 changes: 10 additions & 4 deletions .github/workflows/publish-prod-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-backend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-backend
push: true
tags: itatm/mobidam:mobidam-sst-management-backend-prod
tags: ghcr.io/it-at-m/mobidam-sst-management-backend:prod
14 changes: 10 additions & 4 deletions .github/workflows/publish-prod-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-frontend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-frontend
push: true
tags: itatm/mobidam:mobidam-sst-management-frontend-prod
tags: ghcr.io/it-at-m/mobidam-sst-management-frontend:prod
28 changes: 20 additions & 8 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-backend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-backend
push: true
tags: itatm/mobidam:mobidam-sst-management-backend-test
tags: ghcr.io/it-at-m/mobidam-sst-management-backend:test

frontend-build-and-docker-push:
runs-on: ubuntu-latest
Expand All @@ -57,15 +63,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
- name: Login to Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-frontend

- name: Build and push image
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-frontend
push: true
tags: itatm/mobidam:mobidam-sst-management-frontend-test
tags: ghcr.io/it-at-m/mobidam-sst-management-frontend:test
16 changes: 11 additions & 5 deletions .github/workflows/release-build-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
- name: Login to Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-backend

- name: Build and push app
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-backend
push: true
tags: itatm/mobidam:mobidam-sst-management-backend-${{ steps.set-version.outputs.new_version }}, itatm/mobidam:mobidam-sst-management-backend-demo
tags: ghcr.io/it-at-m/mobidam-sst-management-backend:${{ steps.set-version.outputs.new_version }}, ghcr.io/it-at-m/mobidam-sst-management-backend:demo

github-release:
needs: release
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/release-build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
- name: Login to Regsitry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}-frontend

- name: Build and push app
uses: docker/build-push-action@v4
with:
context: ./mobidam-sst-management-frontend
push: true
tags: itatm/mobidam:mobidam-sst-management-frontend-${{ steps.set-version.outputs.new_version }}, itatm/mobidam:mobidam-sst-management-frontend-demo
tags: ghcr.io/it-at-m/mobidam-sst-management-frontend:${{ steps.set-version.outputs.new_version }}, ghcr.io/it-at-m/mobidam-sst-management-frontend:demo

github-release:
needs: release
Expand Down
1 change: 1 addition & 0 deletions docs/src/releasenotes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Hinzugefügt
- Detailansicht der Schnittstellen
- Bearbeitungsmöglichkeit der Schnittstellen
- von Dockerhub auf GitHub Registry migriert

## Sprint 12 (28.05.2024 - 18.06.2024)
### Hinuzgefügt
Expand Down

0 comments on commit 0ef8791

Please sign in to comment.