Skip to content

Commit

Permalink
V2.2.x respin update (#383)
Browse files Browse the repository at this point in the history
* Update 2.2.x branch for respin

Update GH action to match master

Update known_hosts.sh with new SSH keys

* Disable build to test

* Disable login as no creds

* Test build

* Re-enable everything

* update ssh_knownhosts.sh

* Bump to alpine 3.14

* Testing

* Remove 390x

* Enable push, disable 390x for now
  • Loading branch information
hardillb authored Dec 22, 2023
1 parent cad7df4 commit 4f153c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG NODE_VERSION=14
ARG OS=alpine3.12
ARG OS=alpine3.14

#### Stage BASE ########################################################################################################
FROM node:${NODE_VERSION}-${OS} AS base
Expand Down
31 changes: 5 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,20 @@ jobs:
echo "push=$PUSH" >> $GITHUB_OUTPUT
echo "version=$TRAVIS_TAG" >> $GITHUB_OUTPUT
echo "buildVersion=$VERSION" >> $GITHUB_OUTPUT
-
name: Login to DockerHub
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push

- name: Build and push
id: build-push
uses: docker/build-push-action@v2
continue-on-error: true
with:
context: .
platforms: linux/amd64, linux/arm64, linux/s390x, linux/arm/v7, linux/arm/v6
platforms: linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6 # linux/s390x
push: ${{ steps.nrVersion.outputs.push }}
file: .docker/Dockerfile.alpine
build-args: |
Expand All @@ -152,24 +152,3 @@ jobs:
tags: ${{ steps.nrVersion.outputs.tags }}

# -
# name: Sign Image
# run: |
# echo "Digest ${{ steps.build-push.outputs.digest }}"
# for TAG in $(echo "${{ steps.nrVersion.outputs.tags }}" | sed "s/,/ /g"); do
# if [[ "$TAG" == "${{ env.DEFAULT_IMAGE }}:latest" ]]; then
# export DOCKER_CONTENT_TRUST=1
# SIGNER_KEY_NAME="8b08f4d8315a5d6443a4f59eaab60a49dacbc105c13d25f167cdb5cc9fa8f9ed.key"
# PATH_KEYS=$HOME/.docker/trust/private
# mkdir -p $PATH_KEYS
# cp .docker/$SIGNER_KEY_NAME $PATH_KEYS
# chmod 600 $PATH_KEYS/$SIGNER_KEY_NAME
# export DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE=${{ secrets.DOCKER_SIGNING_PASSWORD }}
# docker trust key load $PATH_KEYS/$SIGNER_KEY_NAME
# # docker trust sign $TAG
# # docker trust inspect --pretty $TAG
# echo "Siging tag $TAG"
# else
# echo "Not signing $TAG"
# fi
# done
2 changes: 1 addition & 1 deletion docker-custom/Dockerfile.custom
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG ARCH=amd64
ARG NODE_VERSION=14
ARG OS=alpine3.12
ARG OS=alpine3.14

#### Stage BASE ########################################################################################################
FROM ${ARCH}/node:${NODE_VERSION}-${OS} AS base
Expand Down
3 changes: 2 additions & 1 deletion docker-custom/known_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ diff - "$fingerprints" <<EOF
2048 SHA256:ROQFvPThGrW4RuWLoL9tq9I9zJ42fK4XywyRtbOz/EQ gitlab.com (RSA)
2048 SHA256:ohD8VZEXGWo6Ez8GSEJQ9WpafgLFsOfLOtGGQCQo6Og ssh.dev.azure.com (RSA)
2048 SHA256:ohD8VZEXGWo6Ez8GSEJQ9WpafgLFsOfLOtGGQCQo6Og vs-ssh.visualstudio.com (RSA)
2048 SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A bitbucket.org (RSA)
256 SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU github.com (ED25519)
256 SHA256:AGvEpqYNMqsRNIviwyk4J4HM0lEylomDBKOWZsBn434 [source.developers.google.com]:2022 (ECDSA)
256 SHA256:FC73VB6C4OQLSCrjEayhMp9UMxS97caD/Yyi2bhW/J0 bitbucket.org (ECDSA)
256 SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw gitlab.com (ECDSA)
256 SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8 gitlab.com (ED25519)
256 SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM github.com (ECDSA)
256 SHA256:ybgmFkzwOSotHTHLJgHO0QN8L0xErw6vd0VhFA9m3SM bitbucket.org (ED25519)
3072 SHA256:46OSHA1Rmj8E8ERTC6xkNcmGOw9oFxYr0WF6zWW8l1E bitbucket.org (RSA)
3072 SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s github.com (RSA)
EOF

Expand All @@ -73,3 +73,4 @@ until ${ok}; do
fi
sleep ${wait}
done

0 comments on commit 4f153c7

Please sign in to comment.