Skip to content

1.0.4

1.0.4 #4

Workflow file for this run

name: Docker Build/Publish Image
on:
push:
branches:
- "main"
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
- '[0-9]+\.[0-9]+'
permissions:
contents: read
packages: write
actions: read
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v6.0.0
with:
images: ghcr.io/${{ github.repository_owner }}/gh-dashboard
tags: |
latest
${{ github.ref_name }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4.0.0
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v4.0.0
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to GHCR
if: github.ref != 'refs/heads/main'
uses: docker/login-action@v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v7.1.0
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.ref != 'refs/heads/main' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}