Merge branch 'main' into feat/traces-v3-poc #426
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
tags: | |
- v* | |
jobs: | |
image-build-and-push-signoz-collector: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: benjlevesque/[email protected] | |
id: short-sha | |
- name: Get branch name | |
id: branch-name | |
uses: tj-actions/[email protected] | |
- name: Set docker tag environment | |
run: | | |
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then | |
tag="${{ steps.branch-name.outputs.tag }}" | |
tag="${tag:1}" | |
echo "DOCKER_TAG=$tag" >> $GITHUB_ENV | |
else | |
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV | |
fi | |
- name: Install cross-compilation tools | |
run: | | |
set -ex | |
sudo apt-get update | |
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools | |
- name: Build artifacts for arm64/amd64 | |
run: make build-all | |
- name: Build and push docker image | |
run: make build-and-push-signoz-collector | |
image-build-and-push-schema-migrator: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
version: latest | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: benjlevesque/[email protected] | |
id: short-sha | |
- name: Get branch name | |
id: branch-name | |
uses: tj-actions/[email protected] | |
- name: Set docker tag environment | |
run: | | |
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then | |
tag="${{ steps.branch-name.outputs.tag }}" | |
tag="${tag:1}" | |
echo "DOCKER_TAG=$tag" >> $GITHUB_ENV | |
else | |
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV | |
fi | |
- name: Install cross-compilation tools | |
run: | | |
set -ex | |
sudo apt-get update | |
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools | |
- name: Build artifacts for arm64/amd64 | |
run: make build-all | |
- name: Build and push docker image | |
run: make build-and-push-signoz-schema-migrator |