diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml index e1655ab..3fb95e1 100644 --- a/.github/workflows/build-docker-image.yaml +++ b/.github/workflows/build-docker-image.yaml @@ -4,9 +4,11 @@ on: branches: [master] paths: - app/** + - .github/** pull_request: paths: - app/** + - .github/** jobs: build-images: @@ -23,13 +25,13 @@ jobs: run: make build working-directory: app - - name: Login to Quay + - name: Login to Gitea if: github.event_name == 'push' uses: docker/login-action@v3 with: - registry: quay.csssr.cloud - username: csssr+github_devops_test_app - password: ${{ secrets.QUAY_REGISTRY_PASSWORD }} + registry: daemongit.dyndns.info + username: just_a_test + password: ${{ secrets.GIT_REGISTRY_PASSWORD }} - name: Publish test-app run: make publish diff --git a/app/Makefile b/app/Makefile index 49b88e3..b19c80d 100644 --- a/app/Makefile +++ b/app/Makefile @@ -11,7 +11,7 @@ start: $(GOBIN)/air $(GOBIN)/air build: - docker build . --tag quay.csssr.cloud/csssr/test-app:$(version) + docker build . --tag daemongit.dyndns.info/just_a_test/devops-test-app:$(version) publish: - docker push quay.csssr.cloud/csssr/test-app:$(version) + docker push daemongit.dyndns.info/just_a_test/devops-test-app:$(version) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index fb2e3b7..a1ffb28 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -14,7 +14,7 @@ spec: spec: containers: - name: my-app - image: quay.csssr.cloud/csssr/test-app:{{ .Values.image.tag }} + image: daemongit.dyndns.info/just_a_test/test-app:{{ .Values.image.tag }} imagePullPolicy: Always env: - name: PORT