Skip to content

Commit 2a99185

Browse files
authored
v4.2.0 (#122)
Major updates * Adding new test framework Minor updates * Using latest base image Build updates * Publishing to ghcr.io again (closes #115)
1 parent 0eb4d9f commit 2a99185

File tree

8 files changed

+65
-10
lines changed

8 files changed

+65
-10
lines changed

Diff for: .github/workflows/dev.yml

+27-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ on:
66
tags-ignore: ['**']
77
workflow_dispatch:
88

9+
env:
10+
TEST_TAG: ftps:test
11+
912
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
steps:
13-
-
14-
name: Checkout code
15-
uses: actions/checkout@v4
1613
build:
1714
runs-on: ubuntu-latest
1815
steps:
@@ -41,6 +38,28 @@ jobs:
4138
with:
4239
username: ${{ secrets.DOCKERHUB_USERNAME }}
4340
password: ${{ secrets.DOCKERHUB_TOKEN }}
41+
-
42+
name: Login to GitHub Container Registry
43+
uses: docker/login-action@v3
44+
with:
45+
registry: ghcr.io
46+
username: ${{ github.repository_owner }}
47+
password: ${{ secrets.GITHUB_TOKEN }}
48+
-
49+
name: Build and export
50+
id: docker_export
51+
uses: docker/build-push-action@v5
52+
with:
53+
build-args: |
54+
BF_IMAGE=${{ env.REPOSITORY_NAME }}
55+
BF_VERSION=${{ steps.version.outputs.contents }}
56+
load: true
57+
tags: ${{ env.TEST_TAG }}
58+
-
59+
name: Run tests
60+
id: docker_test
61+
run: |
62+
docker run --entrypoint "/usr/bin/env" ${{ env.TEST_TAG }} -i nu -c "use bf test ; test"
4463
-
4564
name: Build and push
4665
id: docker_build
@@ -54,6 +73,8 @@ jobs:
5473
tags: |
5574
bfren/ftps:dev
5675
bfren/ftps:${{ steps.version.outputs.contents }}-dev
76+
ghcr.io/bfren/ftps:dev
77+
ghcr.io/bfren/ftps:${{ steps.version.outputs.contents }}-dev
5778
-
5879
name: Image digest
5980
run: echo ${{ steps.docker_build.outputs.digest }}

Diff for: .github/workflows/publish.yml

+18
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,21 @@ jobs:
6464
with:
6565
username: ${{ secrets.DOCKERHUB_USERNAME }}
6666
password: ${{ secrets.DOCKERHUB_TOKEN }}
67+
-
68+
name: Login to GitHub Container Registry
69+
uses: docker/login-action@v3
70+
with:
71+
registry: ghcr.io
72+
username: ${{ github.repository_owner }}
73+
password: ${{ secrets.GITHUB_TOKEN }}
6774
-
6875
name: Build and push
6976
id: docker_build
7077
uses: docker/build-push-action@v5
7178
with:
7279
build-args: |
7380
BF_IMAGE=${{ env.REPOSITORY_NAME }}
81+
BF_PUBLISHING=1
7482
BF_VERSION=${{ steps.version.outputs.contents }}
7583
push: true
7684
platforms: linux/amd64,linux/arm/v7,linux/arm64
@@ -85,6 +93,16 @@ jobs:
8593
bfren/ftps:vsftpd${{ steps.vsftpd_minor.outputs.contents }}-${{ steps.version.outputs.contents }}
8694
bfren/ftps:vsftpd${{ steps.vsftpd_revision.outputs.contents }}
8795
bfren/ftps:vsftpd${{ steps.vsftpd_revision.outputs.contents }}-${{ steps.version.outputs.contents }}
96+
ghcr.io/bfren/ftps:latest
97+
ghcr.io/bfren/ftps:${{ steps.version_major.outputs.contents }}
98+
ghcr.io/bfren/ftps:${{ steps.version_minor.outputs.contents }}
99+
ghcr.io/bfren/ftps:${{ steps.version.outputs.contents }}
100+
ghcr.io/bfren/ftps:vsftpd${{ steps.vsftpd_major.outputs.contents }}
101+
ghcr.io/bfren/ftps:vsftpd${{ steps.vsftpd_major.outputs.contents }}-${{ steps.version.outputs.contents }}
102+
ghcr.io/bfren/ftps:vsftpd${{ steps.vsftpd_minor.outputs.contents }}
103+
ghcr.io/bfren/ftps:vsftpd${{ steps.vsftpd_minor.outputs.contents }}-${{ steps.version.outputs.contents }}
104+
ghcr.io/bfren/ftps:vsftpd${{ steps.vsftpd_revision.outputs.contents }}
105+
ghcr.io/bfren/ftps:vsftpd${{ steps.vsftpd_revision.outputs.contents }}-${{ steps.version.outputs.contents }}
88106
-
89107
name: Image digest
90108
run: echo ${{ steps.docker_build.outputs.digest }}

Diff for: Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM bfren/alpine-s6:alpine3.19-5.1.3
1+
FROM bfren/alpine-s6:alpine3.19-5.2.2
22

33
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-ftps"
44

55
ARG BF_IMAGE
6+
ARG BF_PUBLISHING
67
ARG BF_VERSION
78

89
EXPOSE 21 990 18700-18710

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.4
1+
4.2.0

Diff for: VERSION_MINOR

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1
1+
4.2

Diff for: overlay/etc/nu/scripts/tests/mod.nu

Whitespace-only changes.

Diff for: pull.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if [ -n "${1-}" ] ; then
66
git checkout ${1} && git pull
77
fi
88

9-
chmod +x pull.sh run.sh
9+
chmod +x pull.sh run.sh test.sh

Diff for: test.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
IMAGE=ftps
4+
VERSION=`cat VERSION`
5+
TAG=${IMAGE}-test
6+
7+
docker buildx build \
8+
--load \
9+
--build-arg BF_IMAGE=${IMAGE} \
10+
--build-arg BF_VERSION=${VERSION} \
11+
-f Dockerfile \
12+
-t ${TAG} \
13+
. \
14+
&& \
15+
docker run --entrypoint "/usr/bin/env" ${TAG} -i nu -c "use bf test ; test"

0 commit comments

Comments
 (0)