From b833901c628dfd612200c4a8499dd7621926e8df Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:18:02 -0700 Subject: [PATCH] Add new push action --- .github/workflows/push-mls.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/push-mls.yml diff --git a/.github/workflows/push-mls.yml b/.github/workflows/push-mls.yml new file mode 100644 index 00000000..8ad7f1e5 --- /dev/null +++ b/.github/workflows/push-mls.yml @@ -0,0 +1,34 @@ +name: Deploy Nodes +on: + push: + branches: + - mls +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=mls + IMAGE_TO_DEPLOY=xmtp/node-go@$(dev/docker/build) + echo Successfully pushed $IMAGE_TO_DEPLOY + echo "docker_image=${IMAGE_TO_DEPLOY}" >> $GITHUB_OUTPUT