Skip to content

Commit

Permalink
add docker hub deploy for branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman committed Feb 20, 2024
1 parent c7f317a commit 57b1ee0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/push-subscribers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Push Subscribers Container
on:
push:
branches:
# - mls
- tsachi/topics-count-limit
jobs:
deploy:
concurrency: main
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: xmtpeng
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Git Checkout
uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version-file: go.mod

- name: Push
id: push
run: |
export DOCKER_IMAGE_TAG=subscribers-dev
IMAGE_TO_DEPLOY=xmtp/node-go@$(dev/docker/build)
echo Successfully pushed $IMAGE_TO_DEPLOY
echo "docker_image=${IMAGE_TO_DEPLOY}" >> $GITHUB_OUTPUT

0 comments on commit 57b1ee0

Please sign in to comment.