feat: test building the docker image when building a non-release

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-03-08 01:31:25 -05:00
1 parent c3ee7ce886
commit 669c232562
3 files changed
+15 -5

No files matched your search

+7
View File
@@ -22,6 +22,13 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: set up qemu
uses: docker/setup-qemu-action@v1
- name: set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: build package - name: build package
run: ./tests/ci/setup.sh build run: ./tests/ci/setup.sh build
+4 -4
View File
@@ -27,20 +27,20 @@ jobs:
with: with:
ruby-version: 2.6 ruby-version: 2.6
- name: Login to Docker Hub - name: login to docker hub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU - name: set up qemu
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx - name: set up docker buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Inspect builder - name: inspect builder
run: | run: |
echo "Name: ${{ steps.buildx.outputs.name }}" echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}" echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
+4 -1
View File
@@ -363,7 +363,8 @@ fn-build-docker-image() {
docker buildx build \ docker buildx build \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--progress plain \ --progress plain \
--tag "dokku/dokku:$VERSION" . --tag "dokku/dokku:latest" \
--tag "dokku/dokku:$(echo "$VERSION" | tr + -)" .
fi fi
} }
@@ -422,6 +423,8 @@ main() {
fn-build-docker-image "$NEXT_VERSION" "$IS_RELEASE" || log-fail "Error building docker image" fn-build-docker-image "$NEXT_VERSION" "$IS_RELEASE" || log-fail "Error building docker image"
fn-repo-push-tags "$IS_RELEASE" fn-repo-push-tags "$IS_RELEASE"
else
fn-build-docker-image "$NEXT_VERSION" "$IS_RELEASE" || log-fail "Error building docker image"
fi fi
if [[ "$IS_RELEASE" != "true" ]]; then if [[ "$IS_RELEASE" != "true" ]]; then