Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Bump org.apache.avro:avro from 1.11.0 to 1.11.3 #77

Bump org.apache.avro:avro from 1.11.0 to 1.11.3

Bump org.apache.avro:avro from 1.11.0 to 1.11.3 #77

Workflow file for this run

name: Build and deploy
on: [ push ]
env:
IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
arguments: --configuration-cache build installDist
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
tags: ${{ env.IMAGE }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Archive NAIS yaml
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v1
with:
name: nais-yaml
path: .nais
deploy-dev:
name: Deploy to dev
needs: [ build ]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Fetch NAIS yaml
uses: actions/download-artifact@v1
with:
name: nais-yaml
path: nais
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: nais/nais.yaml,nais/topic.yaml
VARS: nais/vars/dev.yaml
PRINT_PAYLOAD: true
deploy-prod:
name: Deploy to prod
needs: [ build ]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Fetch NAIS yaml
uses: actions/download-artifact@v1
with:
name: nais-yaml
path: nais
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: nais/nais.yaml,nais/topic.yaml
VARS: nais/vars/prod.yaml
PRINT_PAYLOAD: true