Skip to content

Commit

Permalink
Merge pull request #9 from ox-eye/feature/OX-5271-move-to-another-reg…
Browse files Browse the repository at this point in the history
…istry

feat(OX-5271): Build moved to another registry
  • Loading branch information
DovnarAlexander authored Feb 14, 2024
2 parents 746084a + 3cbbc61 commit dae06f3
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@ on:
tags: ["v*"]
pull_request:
branches: [main]
permissions:
id-token: write
contents: read

jobs:
docker-build:
runs-on: ubuntu-22.04
runs-on: private
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: aws-actions/configure-aws-credentials@v1
- uses: docker/login-action@v3
with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
role-session-name: github-${{ github.repository_id }}-${{ github.triggering_actor }}
aws-region: ${{ secrets.AWS_REGION }}
- uses: aws-actions/amazon-ecr-login@v1
id: login-ecr
registry: ${{ secrets.OXEYE_REGISTRY }}
username: ${{ secrets.OXEYE_REGISTRY_USERNAME }}
password: ${{ secrets.OXEYE_REGISTRY_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ steps.login-ecr.outputs.registry }}/dp-otel-collector-deduplicator
images: ${{ secrets.OXEYE_REGISTRY }}/dp-otel-collector-deduplicator
tags: |
type=sha,format=long,prefix=sha-
type=ref,event=branch
Expand Down

0 comments on commit dae06f3

Please sign in to comment.