isl-api/.forgejo/debugging.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2024-02-04 10:10:11 -05:00
---
name: release
on:
push:
2024-02-04 11:12:43 -05:00
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
2024-02-04 10:10:11 -05:00
env:
DOCKER_HOST: tcp://docker-in-docker:2375
jobs:
build:
name: Build and push docker image
runs-on: docker
container:
image: node:21-alpine
steps:
- name: Install docker
shell: /bin/ash -e {0}
run: apk add --update docker git
- name: Check out the repo
uses: https://github.com/actions/checkout@v4
- name: Get Metadata For Docker
2024-02-04 10:19:06 -05:00
id: meta
2024-02-04 10:10:11 -05:00
uses: https://github.com/docker/metadata-action@v5
with:
2024-02-04 10:36:49 -05:00
images: forgejo.merr.is/${{ github.repository }}
2024-02-04 10:25:54 -05:00
tags: |
type=ref,event=branch
type=ref,event=pr
2024-02-04 10:25:54 -05:00
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
2024-02-04 11:12:43 -05:00
labels: |
org.opencontainers.image.licenses=MIT
2024-02-04 10:10:11 -05:00
- name: Debugging steps.meta.outputs.tags
shell: /bin/ash -e {0}
2024-02-04 10:39:01 -05:00
run: echo "${{ steps.meta.outputs.tags }}"
2024-02-04 10:10:11 -05:00
- name: Debugging steps.meta.outputs.labels
shell: /bin/ash -e {0}
2024-02-04 10:39:01 -05:00
run: echo "${{ steps.meta.outputs.labels }}"