diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 59d083f..e69de29 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -1,50 +0,0 @@ -name: Publish Docker image - -on: - push: - branches: - - 'main' - -env: - REPOSITORY: ${{ gitea.repository }} - BUILD_NUMBER: ${{ gitea.run_number }} - DOCKER_REPO_LOGIN: ${{ secrets.DOCKER_REPO_LOGIN }} - DOCKER_REPO_PASSWORD: ${{ secrets.DOCKER_REPO_PASSWORD }} - PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }} - -jobs: - publish_image: - name: Publish image - runs-on: ubuntu-latest - - container: - image: gitea.kdiva.ru/infrastructure/debian-docker - credentials: - username: ${{ env.DOCKER_REPO_LOGIN }} - password: ${{ env.DOCKER_REPO_PASSWORD }} - - steps: - # - name: Checkout - - name: Checkout ${{env.REPOSITORY}} - uses: actions/checkout@v3 - with: - # repository: infrastructure/nginx - repository: ${{env.REPOSITORY}} - github-server-url: https://gitea.kdiva.ru - - - name: Publish image - uses: https://gitea.kdiva.ru/actions/publish-image@3adc1763ef252a10feb1eb667e768f0a5d80335b - with: - DOCKER_REPO_LOGIN: ${{ env.DOCKER_REPO_LOGIN }} - DOCKER_REPO_PASSWORD: ${{ env.DOCKER_REPO_PASSWORD }} - - redeploy_stack: - name: Redeploy stack - runs-on: ubuntu-latest - needs: "Publish image" - - steps: - - name: Redeploy stack - uses: https://gitea.kdiva.ru/actions/portainer-redeploy@4a0951d52d94ac6504dc20321d6d45f66acd1cc0 - with: - PORTAINER_TOKEN: ${{ env.PORTAINER_TOKEN }}