-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 962 Bytes
/
docker-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Docker
on:
schedule:
- cron: '00 01 * * *'
push:
branches: [ "master" ]
workflow_dispatch:
env:
IMAGE_NAME: n9org/inspect
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 7.3-debian-11
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DH_USERNAME }}
password: ${{ secrets.DH_TOKEN }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v3
with:
context: .
push: true
build-args: |
BASE_IMAGE_VERSION=${{ matrix.version }}
tags: ${{ env.IMAGE_NAME }}:${{ matrix.version }}