Fix in 'mbedtls 3.6.0 ver' compilation failure issue #111
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: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
- latest | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: true | |
- uses: docker/[email protected] | |
- uses: docker/[email protected] | |
- uses: docker/[email protected] | |
with: | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
username: ${{ secrets.DOCKER_USERNAME }} | |
- name: check and set image version | |
id: prepare | |
run: | | |
case ${{ github.ref }} in | |
refs/heads/master) | |
echo ::set-output name=version::edge | |
echo ::set-output name=push::true | |
;; | |
refs/tags/*) | |
echo ::set-output name=version::$(echo ${{ github.ref }} | sed -E 's|refs/tags/||') | |
echo ::set-output name=push::true | |
;; | |
*) | |
echo ::set-output name=version::${{ github.sha }} | |
echo ::set-output name=push::false | |
;; | |
esac; | |
- name: build & push image | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: docker/alpine/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: ${{ steps.prepare.outputs.push }} | |
tags: ${{ github.repository }}:${{ steps.prepare.outputs.version }} |