fix: rustup target add aarch64-unknown-linux-musl #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Rust on Nails DevContainer | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'dev-env-as-code/**' | |
- 'nails-devcontainer/**' | |
- '.github/workflows/**' | |
# Exclude this as it is set by semantic release | |
- '!dev-env-as-code/Dockerfile.devcontainer' | |
- '!nails-devcontainer/Dockerfile' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CONTAINER_NAME: purtontech/rust-on-nails-devcontainer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: all | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Push Multi-Architecture Image | |
run: | | |
docker buildx create --use | |
docker buildx build --platform linux/amd64,linux/arm64 \ | |
-t $CONTAINER_NAME:latest \ | |
--push dev-env-as-code | |
# If this is a release | |
# create release notes | |
# set the docker version | |
# | |
- name: Semantic Release | |
id: semantic_release | |
run: | | |
npm i -D @semantic-release/exec | |
npm i -D @semantic-release-plus/docker | |
npm i -D @semantic-release/git | |
npx semantic-release | |
- name: "Publish Templates" | |
uses: devcontainers/action@v1 | |
with: | |
publish-templates: "true" | |
base-path-to-templates: "./nails-devcontainer" | |
generate-docs: "true" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |