Skip to content

chore(deps): bump the maven-dependencies group across 1 directory with 3 updates #36

chore(deps): bump the maven-dependencies group across 1 directory with 3 updates

chore(deps): bump the maven-dependencies group across 1 directory with 3 updates #36

Workflow file for this run

name: CI for Native Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-build:
name: Test Build on Pull Request
if: github.event_name == 'pull_request'
runs-on: builder
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image for testing
uses: docker/build-push-action@v6
with:
context: .
file: ./src/main/docker/Dockerfile.native
platforms: linux/amd64
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
GITHUB_USER=${{ github.actor }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
build-and-push:
name: Build and Push on Main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: builder
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_PAT }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v6
with:
context: .
file: ./src/main/docker/Dockerfile.native
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ github.repository_owner }}/podmortem-log-parser:latest
ghcr.io/${{ github.repository_owner }}/podmortem-log-parser:${{ github.sha }}
build-args: |
GITHUB_USER=${{ github.actor }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}