-
Notifications
You must be signed in to change notification settings - Fork 77
44 lines (41 loc) · 1.08 KB
/
publish_docker_compose.yml
File metadata and controls
44 lines (41 loc) · 1.08 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
name: Publish Docker Compose
on:
push:
branches:
- develop
- master
- 'release/**'
- 'feature/**'
tags:
- '*'
jobs:
publish-docker-compose:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Compose
uses: docker/setup-compose-action@v1
with:
version: latest
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: usdotfhwaops/v2xhub-application
flavor: |
latest=false
tags: |
type=ref,event=branch
type=ref,event=tag
- name: publish docker compose
run: |
cd configuration/
docker compose publish --with-env --yes ${{ steps.meta.outputs.tags }}