GoDoxy/.github/workflows/docker-image.yml
yusing w 52549b6446 Dev
2024-04-08 05:07:27 +00:00

20 lines
576 B
YAML

name: Docker Image CI
on:
push:
tags:
- "*"
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Set tags (latest)
if: "!endsWith(github.ref, '-dev')"
run: echo "::set-output name=tag::latest,${{ github.ref_name }}"
- name: Set tags (dev)
if: "endsWith(github.ref, '-dev')"
run: echo "::set-output name=tag::dev,${{ github.ref_name }}"
- name: Build and Push Container to ghcr.io
uses: GlueOps/github-actions-build-push-containers@v0.3.7
with:
tags: ${{ steps.build_and_push.outputs.tag }}