Skip to content

Commit

Permalink
ci: change build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Feb 19, 2024
1 parent eb0f99d commit b3d7ea3
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Build and push image to registry

on:
push:
branches:
- main
- 'main'
tags:
- v*
- 'v*'
paths:
- 'backend/**'
- 'docker/**'

name: Build Docker image

jobs:
build:
uses: code4romania/.github/.github/workflows/build-push-image.yml@main
name: Build Docker image
uses: code4romania/.github/.github/workflows/build-push-image-ecr.yml@main
with:
images: ghcr.io/code4romania/redirectioneaza
registry: ghcr.io
context: ./
dockerfile: ./docker/dockerfiles/Dockerfile
image_name: redirectioneaza
region: eu-west-1
secrets:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
role_to_assume: ${{ secrets.ROLE_TO_ASSUME }}

0 comments on commit b3d7ea3

Please sign in to comment.