Skip to content

Commit

Permalink
added some improvements to the github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pushrbx committed Oct 26, 2023
1 parent eecbb06 commit 048727c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/container-image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
image_tag:
description: 'Image tag'
required: true
default: 'nightly-<put_date_here>'
default: 'v4.0.0-nightly-<put_date_here>'

env:
REGISTRY_IMAGE: ghcr.io/jikan-me/jikan-rest
Expand Down Expand Up @@ -50,6 +50,8 @@ jobs:
org.opencontainers.image.description=REST API for Jikan
org.opencontainers.image.url=https://jikan.moe
org.opencontainers.image.source=https://github.com/jikan-me/jikan-rest
org.opencontainers.image.documentation=https://github.com/jikan-me/jikan-rest/blob/master/container_usage.md
org.opencontainers.image.revision=${{ github.sha }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -107,7 +109,8 @@ jobs:
${{ env.REGISTRY_IMAGE }}
jikanme/jikan-rest
tags: |
type=raw,value=${{ inputs.image_tag || github.ref_name }}
type=raw,value=${{ inputs.image_tag }}
type=raw,value=${{ github.ref_type == "tag" && 'latest' || 'latest-nightly' }}
type=sha
- name: Login to GitHub Container Registry
Expand Down

0 comments on commit 048727c

Please sign in to comment.