Skip to content

Bump github.com/aws/aws-sdk-go-v2/credentials from 1.17.48 to 1.17.50… #318

Bump github.com/aws/aws-sdk-go-v2/credentials from 1.17.48 to 1.17.50…

Bump github.com/aws/aws-sdk-go-v2/credentials from 1.17.48 to 1.17.50… #318

name: Build and Push images
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
TOOLS_PATH: "/opt/tools/bin"
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Go release
uses: actions/setup-go@v3
with:
go-version: '1.22'
check-latest: true
- name: Install operator-sdk
run: |
mkdir -p $TOOLS_PATH
echo $TOOLS_PATH >> $GITHUB_PATH
export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
export OS=$(uname | awk '{print tolower($0)}')
export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/v1.38.0
curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH}
gpg --keyserver keyserver.ubuntu.com --recv-keys 052996E2A20B5C7E
curl -LO ${OPERATOR_SDK_DL_URL}/checksums.txt
curl -LO ${OPERATOR_SDK_DL_URL}/checksums.txt.asc
gpg -u "Operator SDK (release) <cncf-operator-sdk@cncf.io>" --verify checksums.txt.asc
grep operator-sdk_${OS}_${ARCH} checksums.txt | sha256sum -c -
chmod +x operator-sdk_${OS}_${ARCH}
mv operator-sdk_${OS}_${ARCH} $TOOLS_PATH/operator-sdk
- name: Make operator and bundle
run: |
make build manifests bundle
- name: Docker operator meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
perconalab/everest-operator
tags: |
type=raw,value=0.0.0,enable=${{ contains(github.ref_name, 'main') }}
- name: Docker bundle meta
id: bundle_meta
uses: docker/metadata-action@v4
with:
images: |
perconalab/everest-operator-bundle
tags: |
type=raw,value=0.0.0,enable=${{ contains(github.ref_name, 'main') }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push operator image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Build and Push bundle image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.bundle_meta.outputs.tags }}
file: bundle.Dockerfile