ci: fix backwards incompatible change (#2644) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autocounterd | |
on: | |
push: | |
paths: | |
- misc/autocounterd | |
- .github/workflows/autocounterd.yml | |
branches: | |
- "master" | |
- "misc/autocounterd" | |
tags: | |
- "v*" | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
autocounterd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker metadata autocounterd | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/${{ github.repository }}/autocounterd | |
tags: | | |
type=raw,value=latest | |
type=semver,pattern=v{{version}} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./misc/autocounterd | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |