mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-28 23:52:34 +02:00
20 lines
576 B
YAML
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 }}
|