Skip to content

Commit f8089b2

Browse files
authored
Release Automation (datmanslo#3)
Added Automatic Release creation via Actions
1 parent 106497f commit f8089b2

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/release.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
name: Create Release and Push Tag to Dockerhub
8+
9+
jobs:
10+
build:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Create Release
19+
id: create_release
20+
uses: actions/create-release@v1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
23+
with:
24+
tag_name: ${{ github.ref }}
25+
release_name: Release ${{ github.ref }}
26+
body: |
27+
Changes in this Release
28+
- Added Github Actions
29+
- Updated to CATT v0.11.3
30+
draft: false
31+
prerelease: false
32+
33+
- name: Set up Docker Buildx
34+
id: buildx
35+
uses: crazy-max/ghaction-docker-buildx@v3
36+
with:
37+
buildx-version: latest
38+
qemu-version: latest
39+
40+
- name: Available platforms
41+
run: echo ${{ steps.buildx.outputs.platforms }}
42+
43+
- name: login to docker hub
44+
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
45+
46+
- name: build the image
47+
run: |
48+
docker buildx build \
49+
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x \
50+
--output "type=image,push=true" \
51+
--tag datmanslo/catt:${{ github.ref }} \
52+
- < ./Dockerfile

0 commit comments

Comments
 (0)