mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 04:08:01 -05:00
Fixing dockerhub rate limiting issue on CI (#153)
* Changing sequence of dockerhub login and QEMU setup * Adding docker login to Coordinator tests as well * Moved with declaration to Login to Docker Hub as well * Updating docker action version * Updating docker login actions from v1 and v2 to v3 * Updating qemu action as well
This commit is contained in:
2
.github/workflows/all-tools.yml
vendored
2
.github/workflows/all-tools.yml
vendored
@@ -97,7 +97,7 @@ jobs:
|
||||
submodules: true
|
||||
persist-credentials: false
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
4
.github/workflows/bridge-ui-publish.yml
vendored
4
.github/workflows/bridge-ui-publish.yml
vendored
@@ -31,13 +31,13 @@ jobs:
|
||||
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-bridge-ui-${{ steps.package-version.outputs.current-version }}" | tee $GITHUB_ENV
|
||||
|
||||
- name: Login to Docker Repository
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Docker Image Build and Publish
|
||||
id: docker-build-publish
|
||||
|
||||
2
.github/workflows/cache-docker-images.yml
vendored
2
.github/workflows/cache-docker-images.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
@@ -54,17 +54,17 @@ jobs:
|
||||
- name: Build dist
|
||||
run: |
|
||||
./gradlew coordinator:app:distZip --no-daemon
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Docker meta
|
||||
id: coordinator
|
||||
uses: docker/metadata-action@v3
|
||||
|
||||
5
.github/workflows/coordinator-testing.yml
vendored
5
.github/workflows/coordinator-testing.yml
vendored
@@ -51,6 +51,11 @@ jobs:
|
||||
- name: Build coordinator and Unit tests
|
||||
run: |
|
||||
./gradlew -V coordinator:app:buildNeeded
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
./gradlew integrationTest
|
||||
|
||||
@@ -49,16 +49,16 @@ jobs:
|
||||
submodules: true
|
||||
persist-credentials: false
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: 'arm64,arm'
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Show the "version" build argument
|
||||
run: |
|
||||
echo "We inject the commit tag in the docker image ${{ env.COMMIT_TAG }}"
|
||||
|
||||
@@ -52,12 +52,12 @@ jobs:
|
||||
submodules: true
|
||||
persist-credentials: false
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Show the "version" build argument
|
||||
run: |
|
||||
echo "We inject the commit tag in the docker image ${{ env.COMMIT_TAG }}"
|
||||
|
||||
2
.github/workflows/reuse-run-e2e-tests.yml
vendored
2
.github/workflows/reuse-run-e2e-tests.yml
vendored
@@ -89,7 +89,7 @@ jobs:
|
||||
pnpm-install-options: '--frozen-lockfile --prefer-offline'
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
@@ -57,17 +57,17 @@ jobs:
|
||||
run: |
|
||||
./gradlew traces-api-facade:app:shadowJar
|
||||
echo ${{ github.workspace }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Docker meta
|
||||
id: traces-api-facade
|
||||
uses: docker/metadata-action@v3
|
||||
|
||||
Reference in New Issue
Block a user