Skip to content

change version to 3.0.1. #84

change version to 3.0.1.

change version to 3.0.1. #84

Workflow file for this run

name: Build and Publish Docker
on:
push:
branches:
- '**'
tags:
- 'v*'
jobs:
build_and_push:
runs-on: ubuntu-latest
env:
IMAGE_NAME: echonetlite2mqtt
steps:
- name: checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Write git hash
run: |
echo ref=${{ github.ref }}, sha=${{ github.sha }} > ./buildinfo
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}