Skip to content

Commit

Permalink
Merge pull request #20 from warpstreamlabs/epot/pr/20
Browse files Browse the repository at this point in the history
Publish docker images to ghcr instead
  • Loading branch information
epot authored Jun 3, 2024
2 parents 8be9c6a + a92bf5a commit 32b1e21
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,15 @@ jobs:
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Log in to registry
run: echo "${{ secrets.GH_ACCESS_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
registry-type: public

- name: Install Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -88,7 +78,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
public.ecr.aws/q3y3o3o4/warpstream_bento
ghcr.io/${{ github.repository_owner }}/bento
flavor: |
latest=auto
suffix=-cgo
Expand All @@ -110,7 +100,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
public.ecr.aws/q3y3o3o4/warpstream_bento
ghcr.io/${{ github.repository_owner }}/bento
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
Expand Down

0 comments on commit 32b1e21

Please sign in to comment.