v1.0.0 #28
|
@ -8,19 +8,19 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-22.04
|
image: node:16-bullseye-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
- name: Run test job
|
- name: Run test job
|
||||||
uses: ./.gitea/workflows/test.yaml
|
uses: ./.gitea/workflows/test.yaml
|
||||||
build:
|
build:
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-22.04
|
image: node:16-bullseye-slim
|
||||||
needs: unit-test
|
needs: unit-test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
|
@ -28,13 +28,13 @@ jobs:
|
||||||
# list of Docker images to use as base name for tags
|
# list of Docker images to use as base name for tags
|
||||||
images: |
|
images: |
|
||||||
fedi-image-bot/bot-api
|
fedi-image-bot/bot-api
|
||||||
git.fai.st/fedi-image-bot/bot-api
|
git.fai.st/fedi-image-bot/bot-api
|
||||||
# generate Docker tags based on the following events/attributes
|
# generate Docker tags based on the following events/attributes
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=sha
|
type=sha
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
# Add support for more platforms with QEMU (optional)
|
# Add support for more platforms with QEMU (optional)
|
||||||
# https://github.com/docker/setup-qemu-action
|
# https://github.com/docker/setup-qemu-action
|
||||||
|
@ -55,4 +55,4 @@ jobs:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=registry,ref=fedi-image-bot/bot-api:latest
|
cache-from: type=registry,ref=fedi-image-bot/bot-api:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
Loading…
Reference in New Issue