Skip to content

chore(deps): update plugin io.spring.dependency-management to v1.1.4 - autoclosed #56

chore(deps): update plugin io.spring.dependency-management to v1.1.4 - autoclosed

chore(deps): update plugin io.spring.dependency-management to v1.1.4 - autoclosed #56

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.7.2'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker
id: docker_build
uses: docker/[email protected]
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
username: ${{ github.actor }}
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}