mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.9.0 to 6.10.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v6.9.0...v6.10.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			62 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Publish Docker image
 | 
						|
 | 
						|
on:
 | 
						|
  workflow_dispatch: # on button click
 | 
						|
 | 
						|
permissions:
 | 
						|
  contents: read
 | 
						|
 | 
						|
jobs:
 | 
						|
  push_to_registry:
 | 
						|
    name: Push Docker image to GitHub Docker registry
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
 | 
						|
    steps:
 | 
						|
      - name: Check out the repo        
 | 
						|
        uses: actions/checkout@v4
 | 
						|
 | 
						|
      - name: Log in to GitHub Docker registry
 | 
						|
        uses: docker/login-action@v3
 | 
						|
        with:
 | 
						|
          registry: ghcr.io
 | 
						|
          username: ${{ secrets.DOCKER_USERNAME }}
 | 
						|
          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
						|
 | 
						|
      # -------
 | 
						|
      # BARE Z3
 | 
						|
      # -------
 | 
						|
      - name: Extract metadata (tags, labels) for Bare Z3 Docker Image
 | 
						|
        id: meta
 | 
						|
        uses: docker/metadata-action@v5
 | 
						|
        with:
 | 
						|
          images: ghcr.io/z3prover/z3
 | 
						|
          flavor: |
 | 
						|
            latest=auto
 | 
						|
            prefix=ubuntu-20.04-bare-z3-
 | 
						|
          tags: |
 | 
						|
            type=schedule,pattern={{date 'YYYYMMDD'}}
 | 
						|
            type=ref,event=tag
 | 
						|
            type=edge
 | 
						|
            type=sha,prefix=ubuntu-20.04-bare-z3-sha-
 | 
						|
      - name: Build and push Bare Z3 Docker Image
 | 
						|
        uses: docker/build-push-action@v6.10.0
 | 
						|
        with:  
 | 
						|
          context: .
 | 
						|
          push: true
 | 
						|
          target: bare-z3
 | 
						|
          file: ./docker/ubuntu-20-04.Dockerfile
 | 
						|
          tags: ${{ steps.meta.outputs.tags }}
 | 
						|
          labels: ${{ steps.meta.outputs.labels }}
 | 
						|
 | 
						|
      # ------------------------------
 | 
						|
      # Repo description on GHCR
 | 
						|
      # ------------------------------
 | 
						|
#      - name: Update repo description
 | 
						|
#        uses: peter-evans/dockerhub-description@v2
 | 
						|
#        with:
 | 
						|
#          registry: ghcr.io        
 | 
						|
#          repository: z3prover/z3
 | 
						|
#          username: ${{ secrets.DOCKER_USERNAME }}
 | 
						|
#          password: ${{ secrets.DOCKER_PASSWORD }}
 | 
						|
#          short-description: ${{ github.event.repository.description }}
 | 
						|
#          readme-filepath: ./docker/README.md
 |