mirror of
https://github.com/bitwarden/server
synced 2025-12-24 20:23:21 +00:00
Change protected release branch to release (#1656)
* Adding a contraint around the new release branch strategy * Adding a constraint on what CI code can be used to release the release branch * updating the self host docker image building and releasing * removing master branch release ci code execution * updating some verbiage
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -298,8 +298,8 @@ jobs:
|
||||
- name: Setup build artifact
|
||||
if: ${{ matrix.dotnet }}
|
||||
run: |
|
||||
mkdir -p ${{ matrix.base_path}}/${{ matrix.service_name}}/obj/build-output/publish
|
||||
unzip ${{ matrix.service_name }}.zip -d ${{ matrix.base_path}}/${{ matrix.service_name}}/obj/build-output/publish
|
||||
mkdir -p ${{ matrix.base_path}}/${{ matrix.service_name }}/obj/build-output/publish
|
||||
unzip ${{ matrix.service_name }}.zip -d ${{ matrix.base_path }}/${{ matrix.service_name }}/obj/build-output/publish
|
||||
|
||||
- name: Build Docker images
|
||||
run: |
|
||||
@@ -323,6 +323,12 @@ jobs:
|
||||
docker tag ${{ matrix.docker_repo }}/${{ steps.setup.outputs.service_name }} \
|
||||
${{ matrix.docker_repo }}/${{ steps.setup.outputs.service_name }}:dev
|
||||
|
||||
- name: Tag latest
|
||||
if: github.ref == 'refs/heads/release'
|
||||
run: |
|
||||
docker tag ${{ matrix.docker_repo }}/${{ steps.setup.outputs.service_name }} \
|
||||
${{ matrix.docker_repo }}/${{ steps.setup.outputs.service_name }}:latest
|
||||
|
||||
- name: List Docker images
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
|
||||
run: docker images
|
||||
@@ -343,6 +349,11 @@ jobs:
|
||||
run: |
|
||||
docker push ${{ matrix.docker_repo }}/${{ steps.setup.outputs.service_name }}:dev
|
||||
|
||||
- name: Push latest images
|
||||
if: github.ref == 'refs/heads/release'
|
||||
run: |
|
||||
docker push ${{ matrix.docker_repo }}/${{ steps.setup.outputs.service_name }}:latest
|
||||
|
||||
- name: Log out of Docker
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc'
|
||||
run: docker logout
|
||||
|
||||
Reference in New Issue
Block a user