Skip to content
name: Build & Publish Docker Image Of Commit to Docker Hub
on:
push:
branches-ignore:
- master
- dev
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Build & Publish
- name: Build & Publish Docker Image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm/v7
push: true
tags: lov432/openwrt-stats:${{ github.ref_name }}-${{ github.sha }}