mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 09:35:09 +02:00
36 lines
790 B
YAML
36 lines
790 B
YAML
name: Generate Docker Layer
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- "v*.*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Generate Docker image metadata
|
|
id: metadata
|
|
run: |
|
|
if [[ ${GITHUB_REF_TYPE} == tag ]]; then
|
|
echo "tag=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
|
|
else
|
|
echo "tag=latest" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Login to GitHub registry
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
registry: ghcr.io
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v7
|
|
with:
|
|
push: true
|
|
tags: ghcr.io/${{ github.repository }}:${{ steps.metadata.outputs.tag }}
|