Add linter tool to Dockerfile (#2) #11
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' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: Set up QEMU for multi-architecture builds | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Docker buildx for multi-architecture builds | |
uses: docker/setup-buildx-action@v3 | |
with: | |
use: true | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and release devcontainer Multi-Platform | |
uses: devcontainers/ci@v0.3 | |
env: | |
# see: https://github.com/devcontainers/ci/issues/191#issuecomment-1603857155 | |
BUILDX_NO_DEFAULT_ATTESTATIONS: true | |
with: | |
imageName: ghcr.io/daytonaio/go-devcontainer | |
cacheFrom: ghcr.io/daytonaio/go-devcontainer | |
platform: linux/amd64,linux/arm64 | |
imageTag: main,latest |