mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
CI: use remote docker build host
This commit is contained in:
@@ -40,9 +40,6 @@ jobs:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Will automatically make nice tags, see the table here https://github.com/docker/metadata-action#basic
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
@@ -55,13 +52,6 @@ jobs:
|
||||
type=ref,event=tag
|
||||
${{ inputs.tags }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Add SHORT_SHA env property with commit short sha
|
||||
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
|
||||
|
||||
@@ -73,6 +63,17 @@ jobs:
|
||||
echo "ref_type: $REF_TYPE"
|
||||
echo "ref_name: $REF_NAME"
|
||||
|
||||
- name: Setup repo
|
||||
uses: blockscout/actions/.github/actions/setup-multiarch-buildx@no-metadata
|
||||
id: setup
|
||||
with:
|
||||
docker-image: ghcr.io/blockscout/frontend
|
||||
docker-username: ${{ github.actor }}
|
||||
docker-password: ${{ secrets.GITHUB_TOKEN }}
|
||||
docker-remote-multi-platform: true
|
||||
docker-arm-host: ${{ secrets.ARM_RUNNER_HOSTNAME }}
|
||||
docker-arm-host-key: ${{ secrets.ARM_RUNNER_KEY }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user