docs: update CHANGELOG.md #90
Workflow file for this run
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: Docker | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
packages: write | |
contents: read | |
strategy: | |
matrix: | |
config: ["", "-rv64ima-lp64"] | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v3 | |
- name: Retrieve environment variables | |
run: make env >> $GITHUB_ENV | |
- name: Download linux | |
run: make download | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: docker_meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
ghcr.io/${{ github.repository_owner }}/toolchain | |
docker.io/${{ github.repository_owner }}/toolchain,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/tags/v') }} | |
tags: | | |
type=ref,event=branch,suffix=${{ matrix.config }} | |
type=semver,pattern={{version}},suffix=${{ matrix.config }} | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/tags/v') | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Depot CLI | |
uses: depot/setup-action@v1 | |
- name: Build and push docker image | |
uses: depot/build-push-action@v1 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
push: true | |
build-args: | | |
KERNEL_VERSION=${{ env.KERNEL_VERSION }} | |
TOOLCHAIN_CONFIG=configs/ct-ng-config${{ matrix.config }} | |
project: ${{ vars.DEPOT_PROJECT }} | |
token: ${{ secrets.DEPOT_TOKEN }} |