Skip to content

Bump ch.qos.logback:logback-classic from 1.0.13 to 1.3.12 in /docs/ingress/sample-java-application #656

Bump ch.qos.logback:logback-classic from 1.0.13 to 1.3.12 in /docs/ingress/sample-java-application

Bump ch.qos.logback:logback-classic from 1.0.13 to 1.3.12 in /docs/ingress/sample-java-application #656

name: Cass Operator Build & Deploy
on:
push:
branches:
- master
- "1.4.x"
- "1.5.x"
pull_request:
branches: [ master ]
jobs:
build_operator_docker:
name: Build Cass Operator Docker Image
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
GOROOT: /usr/local/go1.14
steps:
- uses: actions/checkout@v2
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v2
if: github.event_name != 'pull_request'
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Install Mage
run: |
cd /tmp
wget https://github.com/magefile/mage/releases/download/v1.9.0/mage_1.9.0_Linux-64bit.tar.gz
tar -xvf mage_1.9.0_Linux-64bit.tar.gz
mkdir -p $GOPATH/bin
mv mage $GOPATH/bin/mage
sudo chmod +x $GOPATH/bin/mage
- name: Test Sdk Generate
run: |
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
mage operator:testSdkGenerate
- name: Test Client Generate
run: |
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
mage operator:testGenerateClient
- name: Unit Tests
run: |
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
mage operator:testGo
- name: Login to GitHub Package Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin
- name: Login to ECR
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ECR_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ECR_SECRET }}
run: $(aws ecr get-login --no-include-email --region us-east-1)
- name: Setup Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v3
- name: Cache Docker layers
uses: actions/cache@v2
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push Docker
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'datastax/cass-operator'
env:
ECR_REPO: ${{ secrets.ECR_REPO }}
PR_REF: ${{ github.event.pull_request.head.ref }}
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
run: |
if [ "${GITHUB_EVENT_NAME}" == "pull_request" ]; then
export MO_BRANCH=${PR_REF}
else
export MO_BRANCH="master"
fi
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
export GITHUB_REPO_URL="https://github.com/${{ github.repository }}"
./scripts/build-push-images.sh