Skip to content

Update diploi.yaml

Update diploi.yaml #3

Workflow file for this run

name: Build
on:
push:
env:
REGISTRY: ghcr.io
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set tags
id: set-tags
run: |
TAGS="${{ steps.meta.outputs.tags }}"
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
TAGS="${TAGS},${{ env.REGISTRY }}/${{ github.repository }}:latest"
fi
echo "tags=$TAGS" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/arm64
tags: ${{ env.tags }}
labels: ${{ steps.meta.outputs.labels }}