Skip to content

Commit

Permalink
Fixed buildx for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
kdimentionaltree committed Feb 21, 2025
1 parent 3900cde commit 6d515e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
id: branch_name
run: |
GIT_BRANCH=`git symbolic-ref --short HEAD | sed "s/[^[:alnum:].]//g"`
echo "::set-output name=GIT_BRANCH::${GIT_BRANCH}"
echo "::save-state name=GIT_BRANCH::${GIT_BRANCH}"
- name: Get semantic version
uses: paulhatch/[email protected]
id: versioning
Expand All @@ -28,11 +28,11 @@ jobs:
outputs:
version: ${{ github.ref == 'refs/heads/master' && steps.versioning.outputs.version_tag || steps.versioning.outputs.version}}
buildx:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [ set_version ]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
Expand All @@ -56,15 +56,15 @@ jobs:
then
DOCKER_PLATFORMS=linux/amd64,linux/arm64
else
DOCKER_PLATFORMS=linux/amd64
DOCKER_PLATFORMS=linux/amd64,linux/arm64
fi
VERSION=${{ needs.set_version.outputs.version }}
TAGS="-t ${DOCKER_IMAGE}:${VERSION} -t ${DOCKER_IMAGE}:latest"
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
echo ::save-state name=docker_image::${DOCKER_IMAGE}
echo ::save-state name=version::${VERSION}
echo ::save-state name=buildx_args::--platform ${DOCKER_PLATFORMS} \
${TAGS} --file ton-http-api/.docker/Dockerfile ton-http-api
echo "Pulling latest image for cache"
Expand Down

0 comments on commit 6d515e5

Please sign in to comment.