Skip to content

build(deps): bump codecov/codecov-action from 3.1.4 to 4.0.1 (#266) #7

build(deps): bump codecov/codecov-action from 3.1.4 to 4.0.1 (#266)

build(deps): bump codecov/codecov-action from 3.1.4 to 4.0.1 (#266) #7

Workflow file for this run

name: "Docker Hub"
on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- v*
jobs:
docker:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
c1982/sdns
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}