-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.38 KB
/
release.yaml
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
56
57
#
# Copyright (C) 2024 CloudTruth, Inc.
# All Rights Reserved
#
---
name: release
on:
release:
types:
- published
env:
BUILD_TAG: ${{ github.event.release.tag_name }}
DOCKER_REPO: cloudtruth/config-catalyst
permissions:
contents: read # required for actions/checkout
jobs:
build-containers:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Dump github context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- uses: actions/checkout@v3
- name: Set docker login environment from cloudtruth
uses: cloudtruth/configure-action@v2
with:
apikey: "${{ secrets.CLOUDTRUTH_API_KEY }}"
project: "deploy"
environment: "production"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ env.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.DOCKER_REPO }}:${{ env.BUILD_TAG }}, ${{ env.DOCKER_REPO }}:latest