Skip to content

Commit

Permalink
Publish docker CLI to ACR from feature branches (#692)
Browse files Browse the repository at this point in the history
## Type of change

<!-- (mark with an `X`) -->

```
- [ ] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [x] Build/deploy pipeline (DevOps)
- [ ] Other
```

## Objective

<!--Describe what the purpose of this PR is. For example: what bug
you're fixing or what new feature you're adding-->

## Code changes

<!--Explain the changes you've made to each file or major component.
This should help the reviewer understand your changes-->
<!--Also refer to any related changes or PRs in other repositories-->

- **.github/workflows/build-cli-docker.yml:** Push the docker image
always and run build on PR, and branches push without specifying path of
the change

## Before you submit

- Please add **unit tests** where it makes sense to do so
  • Loading branch information
michalchecinski authored Apr 2, 2024
1 parent 0b3f175 commit a408745
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-cli-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ name: Build bws Docker image

on:
push:
paths:
- "crates/bws/**"
branches:
- "main"
- "rc"
- "hotfix-rc"
workflow_dispatch:
pull_request:
paths:
- ".github/workflows/build-cli-docker.yml"
- "crates/bws/**"

env:
_AZ_REGISTRY: bitwardenprod.azurecr.io
Expand Down Expand Up @@ -106,7 +105,7 @@ jobs:
platforms: |
linux/amd64,
linux/arm64/v8
push: ${{ env.is_publish_branch }}
push: true
tags: ${{ steps.tag-list.outputs.tags }}
secrets: |
"GH_PAT=${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}"
Expand Down

0 comments on commit a408745

Please sign in to comment.