Skip to content

chore: remove deprecation & bump version #8

chore: remove deprecation & bump version

chore: remove deprecation & bump version #8

Workflow file for this run

name: Docker
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1
- name: Log into DockerHub
uses: docker/login-action@v1
if: ${{ github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set date env var
run: |
echo "date=$(date +"%Y%m%d")" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: wywywywy/domoticz_exporter:latest,wywywywy/domoticz_exporter:${{ env.date }}
platforms: linux/amd64,linux/arm64