Skip to content

Commit

Permalink
Update docker-image.yml (#5739)
Browse files Browse the repository at this point in the history
* Update docker-image.yml

towards tweaking script to use ghcr

* Update docker-image.yml

* Update docker-image.yml

* Update docker-image.yml

change usr/pwd to names that are more descriptive

* Update docker-image.yml

rename back to use DOCKER prefix
it remains to bind to ghcr.io instead of docker.io

* Update ubuntu-20-04.Dockerfile

try to use ghcr instead of docker.io

* Update docker-image.yml

try with chcr token

* Update docker-image.yml

* Update docker-image.yml

* Update docker-image.yml

* Update ubuntu-20-04.Dockerfile

* Update docker-image.yml
  • Loading branch information
NikolajBjorner authored Dec 26, 2021
1 parent 7d311ac commit ec3e296
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ on:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
name: Push Docker image to GitHub Docker registry
runs-on: ubuntu-latest

steps:
- name: Check out the repo
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
- name: Log in to GitHub Docker registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

Expand All @@ -26,7 +28,7 @@ jobs:
id: meta
uses: docker/metadata-action@v3
with:
images: deemetree/z3-fork
images: ghcr.io/z3prover/z3
flavor: |
latest=auto
prefix=ubuntu-20.04-bare-z3-
Expand All @@ -37,7 +39,7 @@ jobs:
type=sha,prefix=ubuntu-20.04-bare-z3-sha-
- name: Build and push Bare Z3 Docker Image
uses: docker/[email protected]
with:
with:
context: .
push: true
target: bare-z3
Expand All @@ -46,13 +48,14 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

# ------------------------------
# Repo description on Docker Hub
# Repo description on GHCR
# ------------------------------
- name: Update repo description
uses: peter-evans/dockerhub-description@v2
with:
repository: deemetree/z3-fork
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
short-description: ${{ github.event.repository.description }}
readme-filepath: ./docker/README.md
# - 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
2 changes: 1 addition & 1 deletion docker/ubuntu-20-04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ ENTRYPOINT [ "z3" ]
# ...

# TODO(optional): introduce C/C++ -binding stage
# ...
# ...

0 comments on commit ec3e296

Please sign in to comment.