Skip to content

Commit

Permalink
chore: test dockerhub with cross-only
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 22, 2024
1 parent bcd4ff4 commit 1236759
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
matrix:
config:
- { platform: linux-amd64, dist: "debian", target: x86_64-unknown-linux-gnu }
- { platform: linux-arm64-v8, dist: "debian", target: aarch64-unknown-linux-gnu }
- { platform: linux-arm64, dist: "debian", target: aarch64-unknown-linux-gnu }
- { platform: linux-amd64, dist: "alpine", target: x86_64-unknown-linux-musl }
- { platform: linux-arm64-v8, dist: "alpine", target: aarch64-unknown-linux-musl }
- { platform: linux-arm64, dist: "alpine", target: aarch64-unknown-linux-musl }
environment: PROD
env:
CARGO_SERVER_SSL_CA: ${{ secrets.SERVER_SSL_CA }}
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ COPY /alpine-* .

# Rename the correct executable based on the platform
RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
mv alpine-linux-amd64 tagoio-relay; \
mv ./alpine-linux-amd64 tagoio-relay; \
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
mv alpine-linux-arm64 tagoio-relay; \
mv ./alpine-linux-arm64 tagoio-relay; \
else \
echo "Unsupported platform: ${TARGETPLATFORM}"; \
exit 1; \
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COPY /debian-* .
RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
mv ./debian-linux-amd64 tagoio-relay; \
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
mv ./debian-linux-arm64-v8 tagoio-relay; \
mv ./debian-linux-arm64 tagoio-relay; \
else \
echo "Unsupported platform: ${TARGETPLATFORM}"; \
exit 1; \
Expand Down

0 comments on commit 1236759

Please sign in to comment.