-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 879 Bytes
/
ci.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
name: Docker Image CI
on:
pull_request_target:
types: [closed]
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, '🆗 safe') && github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: z00one
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./DockerFile
platforms: linux/amd64
push: true
tags: |
z00one/minori-rag-app:latest