Add Docker ARM images support in CI (#114)

This commit is contained in:
David
2022-06-16 00:49:29 +02:00
committed by GitHub
parent 274e7f1a4b
commit 0a22d26a98
2 changed files with 8 additions and 3 deletions

View File

@@ -36,11 +36,16 @@ script:
fi' fi'
before_deploy: before_deploy:
- mkdir -vp ~/.docker/cli-plugins/
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.8.2/buildx-v0.8.2.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
- chmod a+x ~/.docker/cli-plugins/docker-buildx
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t thedaviddelta/lingva-translate . - docker buildx create --use
deploy: deploy:
provider: script provider: script
script: docker push thedaviddelta/lingva-translate script: docker buildx build --push
--platform linux/amd64,linux/arm/v7,linux/arm64/v8
--tag thedaviddelta/lingva-translate
on: on:
branch: main branch: main

View File

@@ -80,7 +80,7 @@ const TranslationArea: FC<Props> = ({ value, onChange, onSubmit, readOnly, audio
> >
<HStack justify="space-between" px={5} h={useBreakpointValue([12, null, 14]) ?? 12} w="0px" flex={1}> <HStack justify="space-between" px={5} h={useBreakpointValue([12, null, 14]) ?? 12} w="0px" flex={1}>
<Tooltip label={pronunciation}> <Tooltip label={pronunciation}>
<Text aria-label="Pronunciation" opacity={0.75} whiteSpace="nowrap" overflow="hidden" textOverflow="ellipsis"> <Text opacity={0.75} whiteSpace="nowrap" overflow="hidden" textOverflow="ellipsis">
{pronunciation} {pronunciation}
</Text> </Text>
</Tooltip> </Tooltip>