Skip to content

Build devcontainer

Build devcontainer #10

Workflow file for this run

on:
push:
branches: [ master ]
concurrency:
group: build
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
registry:
- registry.cn-hangzhou.aliyuncs.com
- registry.us-west-1.aliyuncs.com
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: ${{ matrix.registry }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
tags: |
${{ matrix.registry }}/xingrz/env-hifi4:latest
${{ matrix.registry }}/xingrz/env-hifi4:2021.7
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}