Skip to content

Commit

Permalink
ci: add release tag to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Sep 12, 2023
1 parent d0ddd44 commit b72d11a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ jobs:

- name: Checkout repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0


- name: Docker Login
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
with:
registry: vprodemo.azurecr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
logout: true

- name: Semantic Release
uses: cycjimmy/semantic-release-action@61680d0e9b02ff86f5648ade99e01be17f0260a4 # v4.0.0
with:
Expand Down
18 changes: 13 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"branches": [
"main",
"next"
"main",
"next"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/exec",
{
"prepareCmd": "docker build -t vprodemo.azurecr.io/rpc-go ."
},
"semantic-release-docker",
{
"name": "vprodemo.azurecr.io/rpc-go"
}
]
}

0 comments on commit b72d11a

Please sign in to comment.