Skip to content

chore: Update go version to 1.21 and 1.22 #5

chore: Update go version to 1.21 and 1.22

chore: Update go version to 1.21 and 1.22 #5

Workflow file for this run

name: Publish Docker image
on:
push:
branches: [ main ]
env:
IMAGE_NAME: chriskies/homewizard-p1-prometheus
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: chriskies/homewizard-p1-prometheus
tags: |
type=ref,event=branch
type=ref,event=pr
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_KEY }}
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/ppc64le
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}