Skip to content

sshforwarding: exit on ssh errors without printing any further errors #21

sshforwarding: exit on ssh errors without printing any further errors

sshforwarding: exit on ssh errors without printing any further errors #21

Workflow file for this run

name: Network Tunnel
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_network_tunnel:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Prepare
id: prep
run: |
TAG=$(echo $GITHUB_SHA | head -c7)
echo ::set-output name=tag::${TAG}
# Linux builds need the non-default musl target.
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- name: Install protobuf compiler (it's not already included in CI runner)
run: sudo apt install -y libprotobuf-dev protobuf-compiler
- name: Build Linux
run: |-
sudo apt-get update && \
sudo apt-get install -y musl-tools && \
make
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
platforms: linux/amd64
context: .
push: true
tags: ghcr.io/estuary/network-tunnel:dev,ghcr.io/estuary/network-tunnel:${{ steps.prep.outputs.tag }}
- name: Build and push
uses: docker/build-push-action@v3
if: ${{ github.ref != 'refs/heads/main' }}
with:
platforms: linux/amd64
context: .
push: true
tags: ghcr.io/estuary/network-tunnel:${{ steps.prep.outputs.tag }}