Skip to content

Merge remote-tracking branch 'origin/main' #1

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #1

Workflow file for this run

name: build
# Build the For You feed-generator image and push it to GHCR. The deploy
# (eurosky-infra `foreu` role) pulls ghcr.io/eurosky-social/for-eu.
on:
push:
branches: [main]
tags: ["v*"]
workflow_dispatch:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/eurosky-social/for-eu
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha,format=long
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max