Skip to content

Deploy e2e to dev from this branch temporarily #189

Deploy e2e to dev from this branch temporarily

Deploy e2e to dev from this branch temporarily #189

Workflow file for this run

name: Deploy E2E
on:
push:
branches:
- upgrade-gowaku-v0.8.0
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=dev
IMAGE_TO_DEPLOY="$(dev/e2e/build)"
echo Successfully pushed $IMAGE_TO_DEPLOY
echo "docker_image=${IMAGE_TO_DEPLOY}" >> ${GITHUB_OUTPUT}
- name: Deploy (dev)
uses: xmtp-labs/terraform-deployer@v1
with:
terraform-token: ${{ secrets.TERRAFORM_TOKEN }}
terraform-org: xmtp
terraform-workspace: dev
variable-name: xmtpd_e2e_image
variable-value: ${{ steps.push.outputs.docker_image }}
variable-value-required-prefix: "xmtp/node-go-e2e@sha256:"
# - name: Deploy (production)
# uses: xmtp-labs/terraform-deployer@v1
# with:
# terraform-token: ${{ secrets.TERRAFORM_TOKEN }}
# terraform-org: xmtp
# terraform-workspace: production
# variable-name: xmtpd_e2e_image
# variable-value: ${{ steps.push.outputs.docker_image }}
# variable-value-required-prefix: "xmtp/node-go-e2e@sha256:"