ci: Fix toolchain image name, tags, labels

This commit is contained in:
Matt Borgerson 2023-01-14 14:21:13 -07:00
parent e44e78fa06
commit e872a95e83
1 changed files with 8 additions and 5 deletions

View File

@ -12,7 +12,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: xemu-win64-toolchain
IMAGE_NAME: xemu-project/xemu-win64-toolchain
jobs:
build-image:
@ -22,16 +22,20 @@ jobs:
steps:
- name: Clone tree
uses: actions/checkout@v3
- name: Extract image metadata (tags, labels)
id: meta
uses: docker/metadata-action@v4.3.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.title=xemu-win64-toolchain
org.opencontainers.image.description=Toolchain and libraries for building xemu Windows releases
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=branch
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
@ -39,7 +43,6 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v3.2.0
with: