-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run Docker test | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
retag-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Current branch sha | ||
run: | | ||
echo "DOCKER_TAG_IMAGE=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | ||
- name: Pull the Image from GHCR | ||
run: | | ||
docker pull ghcr.io/zama-ai/fhevm-contracts:latest | ||
- name: Retag the Image | ||
run: | | ||
docker tag ghcr.io/zama-ai/fhevm-contracts:latest ghcr.io/zama-ai/fhevm-contracts:${{env.DOCKER_TAG_IMAGE }} | ||
- name: Push the Retagged Image to GHCR | ||
run: | | ||
docker push ghcr.io/zama-ai/fhevm-contracts:${{env.DOCKER_TAG_IMAGE }} |