Skip to content

Commit 7152cc9

Browse files
authored
Released 0.11.2 (datmanslo#4)
* v0.11.2 * Fix missing requests * Set buildx to default in action * move release step after build * Update Dockerfile * done * limit platform scope
1 parent f8089b2 commit 7152cc9

File tree

6 files changed

+87
-40
lines changed

6 files changed

+87
-40
lines changed

.github/workflows/image.yml

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,63 @@ jobs:
1010
- name: checkout code
1111
uses: actions/checkout@v2
1212

13-
- name: Set up Docker Buildx
13+
on:
14+
push:
15+
# Sequence of patterns matched against refs/tags
16+
tags:
17+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
18+
19+
name: Create Release and Push Tag to Dockerhub
20+
21+
jobs:
22+
build:
23+
name: Create Release
24+
runs-on: ubuntu-latest
25+
steps:
26+
-
27+
name: Checkout code
28+
uses: actions/checkout@v2
29+
-
30+
name: Set env
31+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
32+
33+
-
34+
name: Create Release
35+
id: create_release
36+
uses: actions/create-release@v1
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
39+
with:
40+
tag_name: ${{ github.ref }}
41+
release_name: Release ${{ github.ref }}
42+
body: |
43+
Changes in this Release
44+
- Updated to CATT v0.11.2
45+
draft: false
46+
prerelease: false
47+
48+
-
49+
name: Set up QEMU
50+
uses: docker/setup-qemu-action@v1
51+
with:
52+
platforms: all
53+
-
54+
name: Set up Docker Buildx
1455
id: buildx
15-
uses: crazy-max/ghaction-docker-buildx@v3
56+
uses: docker/setup-buildx-action@v1
1657
with:
17-
buildx-version: latest
18-
qemu-version: latest
19-
20-
- name: Available platforms
58+
version: latest
59+
install: true
60+
-
61+
name: Available platforms
2162
run: echo ${{ steps.buildx.outputs.platforms }}
2263

2364
- name: login to docker hub
2465
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
2566

2667
- name: build the image
2768
run: |
28-
docker buildx build \
69+
docker build \
2970
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x \
3071
--output "type=image,push=true" \
3172
--tag datmanslo/catt:latest \

.github/workflows/release.yaml

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,50 @@ jobs:
1111
name: Create Release
1212
runs-on: ubuntu-latest
1313
steps:
14-
15-
- name: Checkout code
14+
-
15+
name: Checkout code
1616
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
17+
-
18+
name: Set env
19+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
20+
-
21+
name: Set up QEMU
22+
uses: docker/setup-qemu-action@v1
2323
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
24+
platforms: all
25+
-
26+
name: Set up Docker Buildx
3427
id: buildx
35-
uses: crazy-max/ghaction-docker-buildx@v3
28+
uses: docker/setup-buildx-action@v1
3629
with:
37-
buildx-version: latest
38-
qemu-version: latest
39-
40-
- name: Available platforms
30+
version: latest
31+
install: true
32+
-
33+
name: Available platforms
4134
run: echo ${{ steps.buildx.outputs.platforms }}
4235

4336
- name: login to docker hub
4437
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
4538

4639
- name: build the image
4740
run: |
48-
docker buildx build \
41+
docker build \
4942
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x \
5043
--output "type=image,push=true" \
51-
--tag datmanslo/catt:${{ github.ref }} \
52-
- < ./Dockerfile
44+
--tag datmanslo/catt:$RELEASE_VERSION \
45+
- < ./Dockerfile
46+
-
47+
name: Create Release
48+
id: create_release
49+
uses: actions/create-release@v1
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
52+
with:
53+
tag_name: ${{ github.ref }}
54+
release_name: Release ${{ github.ref }}
55+
body: |
56+
Changes in this Release
57+
- Added Github Actions
58+
- Updated to CATT v0.11.2
59+
draft: false
60+
prerelease: false

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ install:
77
- docker build -t datmanslo/catt .
88

99
script:
10-
- docker run --rm --name catt datmanslo/catt --version | grep -c "catt v0.11.3, Yearning Yachtman." || travis_terminate 1
10+
- docker run --rm --name catt datmanslo/catt --version | grep -c "catt v0.11.2, Yearning Yachtman." || travis_terminate 1

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ ARG BASE_OS_VERSION="3.12.1"
33

44
FROM ${BASE_OS}:${BASE_OS_VERSION}
55

6-
ARG CATT_VERSION=0.11.3
6+
ARG CATT_VERSION=0.11.2
77

88
LABEL maintainer="[email protected]" \
99
version="{CATT_VERSION}" \
1010
repo="github.com/datmanslo/docker-catt"
1111

1212
RUN apk add --no-cache python3 py3-pip && \
1313
pip3 install catt==${CATT_VERSION} && \
14-
apk del --purge py3-pip && \
1514
rm -rf /root/.cache/pip
1615

1716
ENTRYPOINT ["catt"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/datmanslo/docker-catt.svg?branch=master)](https://travis-ci.org/datmanslo/docker-catt)
1+
[![Build Status](https://travis-ci.com/datmanslo/docker-catt.svg?branch=main)](https://travis-ci.com/datmanslo/docker-catt)
22
# docker-catt
33
"Dockerized" version of https://github.com/skorokithakis/catt: Cast All The Things
44
## Usage:

buildah.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o errexit
44

55
base_os="alpine"
66
base_os_version="3.12.1"
7-
catt_version="v0.11.3"
7+
catt_version="v0.11.2"
88
container=$(buildah from $base_os:$base_os_version)
99
image_name="datmanslo/catt"
1010

@@ -14,8 +14,7 @@ buildah config --label version=$catt_version $container
1414
buildah config --label repo="github.com/datmanslo/docker-catt" $container
1515

1616
buildah run $container apk add --no-cache python3 py3-pip
17-
buildah run $container pip3 install catt==$catt_version
18-
buildah run $container apk del --purge py3-pip
17+
buildah run $container python3 -m pip install catt==$catt_version
1918
buildah run $container rm -rf /root/.cache/pip
2019

2120
buildah config --entrypoint catt $container

0 commit comments

Comments
 (0)