mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](74a5d14239...184bdaa072)
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-version: 3.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
92 lines
2.8 KiB
YAML
92 lines
2.8 KiB
YAML
name: docker-push
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build-and-push-images:
|
|
strategy:
|
|
matrix:
|
|
app:
|
|
- name: neo4j
|
|
context: neo4j
|
|
file: neo4j/Dockerfile
|
|
target: community
|
|
- name: backend-base
|
|
context: backend
|
|
file: backend/Dockerfile
|
|
target: base
|
|
- name: backend-build
|
|
context: backend
|
|
file: backend/Dockerfile
|
|
target: build
|
|
- name: backend
|
|
context: backend
|
|
file: backend/Dockerfile
|
|
target: production
|
|
- name: webapp-base
|
|
context: webapp
|
|
file: webapp/Dockerfile
|
|
target: base
|
|
- name: webapp-build
|
|
context: webapp
|
|
file: webapp/Dockerfile
|
|
target: build
|
|
- name: webapp
|
|
context: webapp
|
|
file: webapp/Dockerfile
|
|
target: production
|
|
- name: maintenance-base
|
|
context: webapp
|
|
file: webapp/Dockerfile.maintenance
|
|
target: base
|
|
- name: maintenance-build
|
|
context: webapp
|
|
file: webapp/Dockerfile.maintenance
|
|
target: build
|
|
- name: maintenance
|
|
context: webapp
|
|
file: webapp/Dockerfile.maintenance
|
|
target: production
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
IMAGE_NAME: ${{ github.repository }}/${{ matrix.app.name }}
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
attestations: write
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
|
- name: Log in to the Container registry
|
|
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
id: meta
|
|
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f
|
|
with:
|
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
tags: |
|
|
type=schedule
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
type=ref,event=branch
|
|
type=ref,event=pr
|
|
type=sha
|
|
- name: Build and push Docker images
|
|
id: push
|
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
|
|
with:
|
|
context: ${{ matrix.app.context }}
|
|
target: ${{ matrix.app.target }}
|
|
file: ${{ matrix.app.file }}
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|