Skip to content

Commit

Permalink
build vcr-agent on release
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan P <[email protected]>
  • Loading branch information
i5okie committed Jan 8, 2025
1 parent 8f848c6 commit 555f280
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Release

on:
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
packages: write
contents: write

jobs:
build_vcr_agent:
name: 'Build Traction Aca-Py'
runs-on: ubuntu-latest
if: github.repository_owner == 'bcgov'
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare docker tags for image
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/aries-vcr-agent
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref
type=sha
- name: Build and push image
id: builder
uses: docker/build-push-action@v6
with:
context: ./docker/vcr-agent
file: ./docker/vcr-agent/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 555f280

Please sign in to comment.