Skip to content

Commit

Permalink
fix pipeline remove dockerhub registry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenarciso4 committed Feb 15, 2024
1 parent 87f20a8 commit b1e0115
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/public-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Push roxprox
on:
push:
branches:
- master
- feat/fix-pipeline
tags:
- '[0-9]+.[0-9]+.[0-9]+'

Expand All @@ -24,24 +24,15 @@ jobs:
aws-region: eu-west-1
- name: Docker Login (ECR)
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/y9x3p3i6
- name: Docker Login (Docker Hub)
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Builld
run: docker build -t roxprox .
- name: Tag and push latest
if: endsWith(github.ref, '/master')
if: endsWith(github.ref, '/feat/fix-pipeline')
run: |
docker tag roxprox:latest public.ecr.aws/y9x3p3i6/roxprox:latest
docker tag roxprox:latest in4it/roxprox:latest
docker push public.ecr.aws/y9x3p3i6/roxprox:latest
docker push in4it/roxprox:latest
- name: Tag and push specific version
if: startsWith(github.ref, 'refs/tags/')
run: |
docker tag roxprox:latest public.ecr.aws/y9x3p3i6/roxprox:${{ github.ref_name }}
docker tag roxprox:latest in4it/roxprox:${{ github.ref_name }}
docker push public.ecr.aws/y9x3p3i6/roxprox:${{ github.ref_name }}
docker push in4it/roxprox:${{ github.ref_name }}

0 comments on commit b1e0115

Please sign in to comment.