Skip to content

Commit

Permalink
chore(ci): debug ghcr access
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Nov 4, 2024
1 parent 1a1da6d commit 1a3aed2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test-docker.yml
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 }}

0 comments on commit 1a3aed2

Please sign in to comment.