Skip to content

Update all non-major dependencies #160

Update all non-major dependencies

Update all non-major dependencies #160

name: Build and push containers
on:
release:
types: [published]
pull_request:
jobs:
release-container:
runs-on: ubuntu-latest
env:
DOCKER_USER: ${{ secrets.CONTAINER_USERNAME }}
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'release' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/laminas/laminas-continuous-integration
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
flavor: |
latest=false
- name: Build image. Push for release
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
pull: true
push: ${{ github.event_name == 'release' }}
tags: |
${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max