Skip to content

Commit

Permalink
fix(ci): Publish trusted sync docker (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Jun 25, 2024
1 parent 6237a28 commit a95fa1f
Showing 1 changed file with 8 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Publish Trusted Sync Binary
name: Publish Trusted Sync Binary Image

on:
workflow_dispatch:

env:
REGISTRY: ghcr.io

jobs:
publish-ghcr:
runs-on: ubuntu-latest
Expand All @@ -12,8 +15,10 @@ jobs:
env:
IMAGE_NAME: ${{ github.repository }}/trusted-sync
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
- name: Checkout repository
uses: actions/checkout@v4
- name: Authenticate with container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -31,21 +36,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
publish-docker-hub:
name: Publish Trusted Sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.PERSONAL_DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password: ${{ secrets.PERSONAL_DOCKERHUB_ACCESS_TOKEN_SECRET }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
file: examples/trusted-sync/Dockerfile
push: true
tags: refcell/trusted-sync:latest

0 comments on commit a95fa1f

Please sign in to comment.