Fix issues, add .dockerignore
Some checks failed
CI Code / Linux (ubuntu) (pull_request) Failing after 7s
CI Code / Check spelling (pull_request) Successful in 13s
CI Code / Check coding style (pull_request) Successful in 23s
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 3m35s
CI Code / Linux (debian) (pull_request) Failing after 4m7s
CI Code / Linux (arch) (pull_request) Failing after 7m1s
CI Code / Code Coverage (pull_request) Failing after 7m12s

This commit is contained in:
2026-07-07 13:01:37 +00:00
parent 2bad80b015
commit 3dc5f4df16
3 changed files with 46 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ name: Publish Docker image
on:
push:
branches: [master]
branches: [master, ci/docker-hub-publishing]
release:
types: [published]
@@ -11,7 +11,6 @@ jobs:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
@@ -29,10 +28,10 @@ jobs:
with:
images: cproofdev/cproof
tags: |
type=raw,value=dev,enable-if-ref=refs/heads/master
type=sha,prefix=nightly-,enable-if-ref=refs/heads/master
type=raw,value=dev,enable={{is_default_branch}}
type=sha,prefix=nightly-,enable={{is_default_branch}}
type=ref,event=tag
type=raw,value=latest,enable-if-ref=refs/tags/*
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
- name: Build and push Docker image
id: push
@@ -43,5 +42,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}