mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
ci: depoy to dev docker only from branch develop
This commit is contained in:
parent
2a9507f3e5
commit
210b501383
26
.github/workflows/dev.yml
vendored
26
.github/workflows/dev.yml
vendored
@ -3,7 +3,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- roles
|
||||
pull_request:
|
||||
branches: [develop]
|
||||
|
||||
jobs:
|
||||
build-local:
|
||||
@ -37,24 +38,6 @@ jobs:
|
||||
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:
|
||||
runs-on: [ubuntu-latest]
|
||||
needs: [build-local]
|
||||
@ -111,6 +94,7 @@ jobs:
|
||||
deploy-dev:
|
||||
runs-on: [ubuntu-latest]
|
||||
needs: [test-integration]
|
||||
if: github.ref == 'refs/heads/develop'
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with: { go-version: 1.19 }
|
||||
@ -119,8 +103,6 @@ jobs:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# - run: context=prod task docker:test
|
||||
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
@ -141,8 +123,6 @@ jobs:
|
||||
tags: semaphoreui/semaphore:develop
|
||||
|
||||
|
||||
|
||||
|
||||
# test-docker:
|
||||
# runs-on: [ubuntu-latest]
|
||||
# steps:
|
||||
|
Loading…
Reference in New Issue
Block a user