ci: depoy to dev docker only from branch develop

This commit is contained in:
Denis Gukov 2023-08-27 00:31:16 +02:00
parent 2a9507f3e5
commit 210b501383

View File

@ -3,7 +3,8 @@ on:
push: push:
branches: branches:
- develop - develop
- roles pull_request:
branches: [develop]
jobs: jobs:
build-local: build-local:
@ -37,24 +38,6 @@ jobs:
retention-days: 1 retention-days: 1
# test-golang:
# runs-on: [ubuntu-latest]
# needs: build-local
# steps:
# - uses: actions/setup-go@v3
# with: { go-version: 1.19 }
#
# - run: go install github.com/go-task/task/v3/cmd/task@latest
#
# - uses: actions/checkout@v3
#
# - run: task deps:tools
# - run: task deps:be
# - run: task compile:be
# - run: task lint:be
# - run: task test
test-db-migration: test-db-migration:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
needs: [build-local] needs: [build-local]
@ -111,6 +94,7 @@ jobs:
deploy-dev: deploy-dev:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
needs: [test-integration] needs: [test-integration]
if: github.ref == 'refs/heads/develop'
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: { go-version: 1.19 } with: { go-version: 1.19 }
@ -119,8 +103,6 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# - run: context=prod task docker:test
- uses: docker/setup-qemu-action@v2 - uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2 - uses: docker/setup-buildx-action@v2
@ -141,8 +123,6 @@ jobs:
tags: semaphoreui/semaphore:develop tags: semaphoreui/semaphore:develop
# test-docker: # test-docker:
# runs-on: [ubuntu-latest] # runs-on: [ubuntu-latest]
# steps: # steps: