Skip to content

refactor: r/demo/users #1871

refactor: r/demo/users

refactor: r/demo/users #1871

Workflow file for this run

name: autocounterd
on:
pull_request:
branches:
- master
push:
paths:
- misc/autocounterd
- misc/loop
- .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:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}