mirror of
https://github.com/directus/directus.git
synced 2026-02-17 14:21:27 -05:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: build-images
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Sleep for 30 seconds
|
|
uses: jakejarvis/wait-action@master
|
|
with:
|
|
time: '30s'
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build GitHub Container Registry
|
|
uses: ./.github/actions/build-images
|
|
with:
|
|
registry: "ghcr.io"
|
|
repository: "${{ github.repository }}"
|
|
username: "${{ secrets.REGISTRY_USERNAME }}"
|
|
password: "${{ secrets.REGISTRY_PASSWORD }}"
|
|
version: "${{ github.ref }}"
|
|
latest: "true"
|
|
push: "true"
|
|
|
|
- name: Build Docker Hub
|
|
uses: ./.github/actions/build-images
|
|
with:
|
|
registry: "docker.io"
|
|
repository: "${{ github.repository }}"
|
|
username: "${{ secrets.DOCKERHUB_USERNAME }}"
|
|
password: "${{ secrets.DOCKERHUB_PASSWORD }}"
|
|
version: "${{ github.ref }}"
|
|
latest: "true"
|
|
push: "true"
|