Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(docker): fix registry #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/docker-dispatch.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: docker-dispatch

on:
# Trigger without any parameters a proactive rebuild
workflow_dispatch: {}
workflow_call:

env:
REGISTRY: ghcr.io
# Will resolve to foundry-rs/foundry
REGISTRY: hub.docker.com
IMAGE_NAME: ${{ github.repository }}

GITHUB_TOKEN: ${{ github.token }}

jobs:
container:

Expand Down Expand Up @@ -39,9 +38,8 @@ jobs:
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
Expand Down Expand Up @@ -88,4 +86,4 @@ jobs:
build-args: |
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
10 changes: 5 additions & 5 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get tag version
id: vars
Expand All @@ -38,7 +38,7 @@ jobs:
build-args: |
VERSION=${{ steps.vars.outputs.tag }}
CGO_CFLAGS=
tags: flashbots/mev-boost:latest,flashbots/mev-boost:${{ steps.vars.outputs.tag }}
tags: manifoldfinance/flashbots-boost:latest,manifoldfinance/flashbots-boost:${{ steps.vars.outputs.tag }}
platforms: linux/amd64,linux/arm64

- name: Build and push portable
Expand All @@ -49,20 +49,20 @@ jobs:
build-args: |
VERSION=${{ steps.vars.outputs.tag }}
CGO_CFLAGS=-O -D__BLST_PORTABLE__
tags: flashbots/mev-boost:latest-portable,flashbots/mev-boost:${{ steps.vars.outputs.tag }}-portable
tags: manifoldfinance/flashbots-boost:latest-portable,manifoldfinance/flashbots-boost:${{ steps.vars.outputs.tag }}-portable
platforms: linux/amd64,linux/arm64

github-release:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
Expand Down