Skip to content

Commit

Permalink
test: temporarily enable dev builds on this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Dec 13, 2023
1 parent 54ec100 commit dd788b8
Showing 1 changed file with 83 additions and 82 deletions.
165 changes: 83 additions & 82 deletions .github/workflows/dev_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- 'release-v[0-9]+.[0-9]+'
- 'ci/build-otelcol-sidecar-dev'

permissions:
packages: write
Expand All @@ -19,44 +20,44 @@ env:
LATEST_TAG: "main"

jobs:
build-fluentbit-sidecar:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Extract tag
id: extract_tag
run: echo "tag=$(echo $(git describe --tags --always))" >> $GITHUB_OUTPUT
- name: Print container tag
run: echo "Running dev build for ${{ steps.extract_tag.outputs.tag }}"
# build-fluentbit-sidecar:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - name: Extract tag
# id: extract_tag
# run: echo "tag=$(echo $(git describe --tags --always))" >> $GITHUB_OUTPUT
# - name: Print container tag
# run: echo "Running dev build for ${{ steps.extract_tag.outputs.tag }}"

- name: Set up QEMU
uses: docker/[email protected]
# - name: Set up QEMU
# uses: docker/[email protected]

- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: USERNAME
password: ${{ secrets.CR_PAT }}
- name: Build and push tailing sidecar multiplatform image
run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE }}:${{ steps.extract_tag.outputs.tag }}
working-directory: ./sidecar/fluentbit
- name: Push tailing sidecar image with latest tag
run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE }}:${{ env.LATEST_TAG }}
working-directory: ./sidecar/fluentbit
- name: Log in to AWS Public ECR to publish tailing sidecar image
run: make login-ecr
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_TAILING_SIDECAR_DEV }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_TAILING_SIDECAR_DEV }}
- name: Build and push to ECR tailing sidecar multiplatform image
run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE_ECR }}:${{ steps.extract_tag.outputs.tag }}
working-directory: ./sidecar/fluentbit
- name: Push tailing sidecar image with latest tag to ECR
run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE_ECR }}:${{ env.LATEST_TAG }}
working-directory: ./sidecar/fluentbit
# - name: Set up Docker Buildx
# uses: docker/[email protected]
# - name: Login to GitHub Container Registry
# uses: docker/[email protected]
# with:
# registry: ghcr.io
# username: USERNAME
# password: ${{ secrets.CR_PAT }}
# - name: Build and push tailing sidecar multiplatform image
# run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE }}:${{ steps.extract_tag.outputs.tag }}
# working-directory: ./sidecar/fluentbit
# - name: Push tailing sidecar image with latest tag
# run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE }}:${{ env.LATEST_TAG }}
# working-directory: ./sidecar/fluentbit
# - name: Log in to AWS Public ECR to publish tailing sidecar image
# run: make login-ecr
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_TAILING_SIDECAR_DEV }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_TAILING_SIDECAR_DEV }}
# - name: Build and push to ECR tailing sidecar multiplatform image
# run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE_ECR }}:${{ steps.extract_tag.outputs.tag }}
# working-directory: ./sidecar/fluentbit
# - name: Push tailing sidecar image with latest tag to ECR
# run: make build-push-multiplatform TAG=${{ env.SIDECAR_IMAGE_ECR }}:${{ env.LATEST_TAG }}
# working-directory: ./sidecar/fluentbit

build-otelcol-sidecar:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -88,52 +89,52 @@ jobs:
run: make release-dev
working-directory: ./sidecar/otelcol

build-operator:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Extract tag
id: extract_tag
run: echo "tag=$(echo $(git describe --tags --always))" >> $GITHUB_OUTPUT
- name: Print container tag
run: echo "Running dev build for ${{ steps.extract_tag.outputs.tag }}"
# build-operator:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - name: Setup go
# uses: actions/setup-go@v5
# with:
# go-version: '1.20'
# - name: Extract tag
# id: extract_tag
# run: echo "tag=$(echo $(git describe --tags --always))" >> $GITHUB_OUTPUT
# - name: Print container tag
# run: echo "Running dev build for ${{ steps.extract_tag.outputs.tag }}"

- name: Set up QEMU
uses: docker/[email protected]
# - name: Set up QEMU
# uses: docker/[email protected]

- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: USERNAME
password: ${{ secrets.CR_PAT }}
- name: Build and push tailing sidecar operator multiplatform image
run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE }}:${{ steps.extract_tag.outputs.tag }}
working-directory: ./operator
- name: Push tailing sidecar operator image with latest tag
run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE }}:${{ env.LATEST_TAG }}
working-directory: ./operator
- name: Log in to AWS Public ECR to publish tailing sidecar operator image
run: make login-ecr
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_TAILING_SIDECAR_OPERATOR_DEV }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_TAILING_SIDECAR_OPERATOR_DEV }}
- name: Build and push to ECR tailing sidecar operator multiplatform image
run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE_ECR }}:${{ steps.extract_tag.outputs.tag }}
working-directory: ./operator
- name: Push tailing sidecar operator image with latest tag to ECR
run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE_ECR }}:${{ env.LATEST_TAG }}
working-directory: ./operator
# - name: Set up Docker Buildx
# uses: docker/[email protected]
# - name: Login to GitHub Container Registry
# uses: docker/[email protected]
# with:
# registry: ghcr.io
# username: USERNAME
# password: ${{ secrets.CR_PAT }}
# - name: Build and push tailing sidecar operator multiplatform image
# run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE }}:${{ steps.extract_tag.outputs.tag }}
# working-directory: ./operator
# - name: Push tailing sidecar operator image with latest tag
# run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE }}:${{ env.LATEST_TAG }}
# working-directory: ./operator
# - name: Log in to AWS Public ECR to publish tailing sidecar operator image
# run: make login-ecr
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_TAILING_SIDECAR_OPERATOR_DEV }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_TAILING_SIDECAR_OPERATOR_DEV }}
# - name: Build and push to ECR tailing sidecar operator multiplatform image
# run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE_ECR }}:${{ steps.extract_tag.outputs.tag }}
# working-directory: ./operator
# - name: Push tailing sidecar operator image with latest tag to ECR
# run: make build-push-multiplatform IMG=${{ env.OPERATOR_IMAGE_ECR }}:${{ env.LATEST_TAG }}
# working-directory: ./operator

push-helm-chart:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Push dev helm chart
run: make push-helm-chart
# push-helm-chart:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - name: Push dev helm chart
# run: make push-helm-chart

0 comments on commit dd788b8

Please sign in to comment.