mirror of
https://github.com/nikdoof/hg612-exporter.git
synced 2025-12-14 02:32:15 +00:00
chore: Update build and docker dependencies
This commit is contained in:
13
.github/workflows/build-docker-image.yaml
vendored
13
.github/workflows/build-docker-image.yaml
vendored
@@ -1,5 +1,4 @@
|
||||
name: ci
|
||||
|
||||
name: build-docker-image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -12,11 +11,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
registry: ghcr.io
|
||||
@@ -24,9 +23,11 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/hg612-exporter:${{ github.ref_name }}
|
||||
ghcr.io/${{ github.repository_owner }}/hg612-exporter:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user