2020-11-28 14:47:27 +00:00
|
|
|
name: Publish Tactical Docker Images
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
name: Build and Push Docker Images
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
2023-12-01 20:07:04 +00:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Get Github Tag
|
|
|
|
id: prep
|
|
|
|
run: |
|
|
|
|
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Login to DockerHub
|
2023-12-01 20:07:04 +00:00
|
|
|
uses: docker/login-action@v1
|
2020-11-28 14:47:27 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Build and Push Tactical Image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
pull: true
|
|
|
|
file: ./docker/containers/tactical/dockerfile
|
|
|
|
platforms: linux/amd64
|
2020-12-02 12:53:12 +00:00
|
|
|
tags: tacticalrmm/tactical:${{ steps.prep.outputs.version }},tacticalrmm/tactical:latest
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Build and Push Tactical MeshCentral Image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
pull: true
|
|
|
|
file: ./docker/containers/tactical-meshcentral/dockerfile
|
|
|
|
platforms: linux/amd64
|
2020-12-02 12:53:12 +00:00
|
|
|
tags: tacticalrmm/tactical-meshcentral:${{ steps.prep.outputs.version }},tacticalrmm/tactical-meshcentral:latest
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Build and Push Tactical NATS Image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
pull: true
|
|
|
|
file: ./docker/containers/tactical-nats/dockerfile
|
|
|
|
platforms: linux/amd64
|
2020-12-02 12:53:12 +00:00
|
|
|
tags: tacticalrmm/tactical-nats:${{ steps.prep.outputs.version }},tacticalrmm/tactical-nats:latest
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Build and Push Tactical Frontend Image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
pull: true
|
|
|
|
file: ./docker/containers/tactical-frontend/dockerfile
|
|
|
|
platforms: linux/amd64
|
2020-12-02 12:53:12 +00:00
|
|
|
tags: tacticalrmm/tactical-frontend:${{ steps.prep.outputs.version }},tacticalrmm/tactical-frontend:latest
|
2023-12-01 20:07:04 +00:00
|
|
|
|
2020-11-28 14:47:27 +00:00
|
|
|
- name: Build and Push Tactical Nginx Image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
pull: true
|
|
|
|
file: ./docker/containers/tactical-nginx/dockerfile
|
|
|
|
platforms: linux/amd64
|
2020-12-02 12:53:12 +00:00
|
|
|
tags: tacticalrmm/tactical-nginx:${{ steps.prep.outputs.version }},tacticalrmm/tactical-nginx:latest
|