-
Notifications
You must be signed in to change notification settings - Fork 34
55 lines (48 loc) · 1.39 KB
/
docker-dev-image.yml
File metadata and controls
55 lines (48 loc) · 1.39 KB
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
48
49
50
51
52
53
54
55
name: Docker Dev Image CI
on:
push:
tags:
- '**-dev'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
driver: docker-container
- name: Docker meta for API
id: api-meta
uses: docker/metadata-action@v6
with:
images: line/abc-user-feedback-api
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
- name: Docker meta for Web
id: web-meta
uses: docker/metadata-action@v6
with:
images: line/abc-user-feedback-web
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Bake and push multi-platform Docker images
uses: docker/bake-action@v7
with:
files: |
./docker/docker-bake.hcl
push: true
set: |
api.tags=${{ steps.api-meta.outputs.tags }}
web.tags=${{ steps.web-meta.outputs.tags }}