release #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
# Run at 4PM UTC every Monday | |
- cron: '0 16 * * 1' | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }} | |
- name: Keepalive | |
uses: gautamkrishnar/keepalive-workflow@v1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: "${{ secrets.AWS_ASSUME_ROLE }}" | |
aws-region: "us-east-1" | |
role-duration-seconds: 7200 | |
- name: Login to ECR | |
id: ecr-login | |
uses: aws-actions/amazon-ecr-login@v1 | |
with: | |
registry-type: public | |
- name: Setup Buildx Remote Docker | |
id: buildx | |
uses: truemark/aws-buildx-remote-docker-instance-action@v4 | |
with: | |
security-group-id: "${{ vars.SECURITY_GROUP_ID }}" | |
subnet-id: "${{ vars.SUBNET_ID }}" | |
instance-profile: "${{ vars.INSTANCE_PROFILE }}" | |
region: "us-east-2" | |
- name: Build Ubuntu Focal | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="ubuntu" \ | |
--build-arg OS_VERSION="focal" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-ubuntu-focal \ | |
-t truemark/aws-cli:2-ubuntu-focal \ | |
-t truemark/aws-cli:ubuntu-focal \ | |
. | |
- name: Copy 2-${{github.run_number}}-ubuntu-focal to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-ubuntu-focal" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-ubuntu-focal" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-ubuntu-focal to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-ubuntu-focal" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-ubuntu-focal" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy ubuntu-focal to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:ubuntu-focal" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:ubuntu-focal" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Ubuntu Jammy | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="ubuntu" \ | |
--build-arg OS_VERSION="jammy" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-ubuntu-jammy \ | |
-t truemark/aws-cli:2-ubuntu-jammy \ | |
-t truemark/aws-cli:ubuntu-jammy \ | |
-t truemark/aws-cli:ubuntu \ | |
. | |
- name: Copy 2-${{github.run_number}}-ubuntu-jammy to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-ubuntu-jammy" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-ubuntu-jammy" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-ubuntu-jammy to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-ubuntu-jammy" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-ubuntu-jammy" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy ubuntu-jammy to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:ubuntu-jammy" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:ubuntu-jammy" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy ubuntu to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:ubuntu" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:ubuntu" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Debian Bullseye | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="debian" \ | |
--build-arg OS_VERSION="bullseye" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-debian-bullseye \ | |
-t truemark/aws-cli:2-debian-bullseye \ | |
-t truemark/aws-cli:debian-bullseye \ | |
. | |
- name: Copy 2-${{github.run_number}}-debian-bullseye to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-debian-bullseye" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-debian-bullseye" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-debian-bullseye to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-debian-bullseye" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-debian-bullseye" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy debian-bullseye to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:debian-bullseye" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:debian-bullseye" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Debian Bookworm | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="debian" \ | |
--build-arg OS_VERSION="bookworm" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-debian-bookworm \ | |
-t truemark/aws-cli:2-debian-bookworm \ | |
-t truemark/aws-cli:debian-bookworm \ | |
-t truemark/aws-cli:debian \ | |
. | |
- name: Copy 2-${{github.run_number}}-debian-bookworm to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-debian-bookworm" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-debian-bookworm" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-debian-bookworm to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-debian-bookworm" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-debian-bookworm" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy debian-bookworm to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:debian-bookworm" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:debian-bookworm" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy debian to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:debian" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:debian" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Debian Bullseye Slim | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="debian" \ | |
--build-arg OS_VERSION="bullseye-slim" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-debian-bullseye-slim \ | |
-t truemark/aws-cli:2-debian-bullseye-slim \ | |
-t truemark/aws-cli:debian-bullseye-slim \ | |
. | |
- name: Copy 2-${{github.run_number}}-debian-bullseye-slim to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-debian-bullseye-slim" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-debian-bullseye-slim" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-debian-bullseye-slim to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-debian-bullseye-slim" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-debian-bullseye-slim" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy debian-bullseye-slim to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:debian-bullseye-slim" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:debian-bullseye-slim" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Debian Bookworm Slim | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="debian" \ | |
--build-arg OS_VERSION="bullseye-slim" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-debian-bookworm-slim \ | |
-t truemark/aws-cli:2-debian-bookworm-slim \ | |
-t truemark/aws-cli:debian-bookworm-slim \ | |
. | |
- name: Copy ${{github.run_number}}-debian-bookworm-slim to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-debian-bookworm-slim" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-debian-bookworm-slim" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-debian-bookworm-slim to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-debian-bookworm-slim" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-debian-bookworm-slim" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy debian-bookworm-slim to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:debian-bookworm-slim" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:debian-bookworm-slim" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Amazon Linux 2 | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="amazonlinux" \ | |
--build-arg OS_VERSION="2" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2 \ | |
-t truemark/aws-cli:2-amazonlinux-2 \ | |
-t truemark/aws-cli:amazonlinux-2 \ | |
. | |
- name: Copy 2-${{github.run_number}}-amazonlinux-2 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-amazonlinux-2 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-amazonlinux-2" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-amazonlinux-2" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy amazonlinux-2 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:amazonlinux-2" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:amazonlinux-2" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Amazon Linux 2022 | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="amazonlinux" \ | |
--build-arg OS_VERSION="2022" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2022 \ | |
-t truemark/aws-cli:2-amazonlinux-2022 \ | |
-t truemark/aws-cli:amazonlinux-2022 \ | |
. | |
- name: Copy 2-${{github.run_number}}-amazonlinux-2022 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2022" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2022" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-amazonlinux-2022 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-amazonlinux-2022" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-amazonlinux-2022" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy amazonlinux-2022 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:amazonlinux-2022" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:amazonlinux-2022" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Amazon Linux 2023 | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="amazonlinux" \ | |
--build-arg OS_VERSION="2023" \ | |
-f Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2023 \ | |
-t truemark/aws-cli:2-amazonlinux-2023 \ | |
-t truemark/aws-cli:amazonlinux-2023 \ | |
-t truemark/aws-cli:amazonlinux \ | |
-t truemark/aws-cli:latest \ | |
. | |
- name: Copy 2-${{github.run_number}}-amazonlinux-2023 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2023" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-amazonlinux-2023" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-amazonlinux-2023 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-amazonlinux-2023" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-amazonlinux-2023" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy amazonlinux-2023 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:amazonlinux-2023" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:amazonlinux-2023" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy amazonlinux to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:amazonlinux" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:amazonlinux" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy latest to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:latest" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:latest" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Alpine 3.16 | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="alpine" \ | |
--build-arg OS_VERSION="3.16" \ | |
-f alpine.Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-alpine-3.16 \ | |
-t truemark/aws-cli:2-alpine-3.16 \ | |
-t truemark/aws-cli:alpine-3.16 \ | |
. | |
- name: Copy 2-${{github.run_number}}-alpine-3.16 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-alpine-3.16" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-alpine-3.16" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-alpine-3.16 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-alpine-3.16" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-alpine-3.16" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy alpine-3.16 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:alpine-3.16" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:alpine-3.16" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Build Alpine 3.17 | |
run: | | |
docker buildx build \ | |
--push \ | |
--platform linux/arm64,linux/amd64 \ | |
--build-arg OS_NAME="alpine" \ | |
--build-arg OS_VERSION="3.17" \ | |
-f alpine.Dockerfile \ | |
-t truemark/aws-cli:2-${{github.run_number}}-alpine-3.17 \ | |
-t truemark/aws-cli:2-alpine-3.17 \ | |
-t truemark/aws-cli:alpine-3.17 \ | |
-t truemark/aws-cli:alpine \ | |
. | |
- name: Copy 2-${{github.run_number}}-alpine-3.17 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-${{github.run_number}}-alpine-3.17" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-${{github.run_number}}-alpine-3.17" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy 2-alpine-3.17 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:2-alpine-3.17" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:2-alpine-3.17" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy alpine-3.17 to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:alpine-3.17" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:alpine-3.17" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" | |
- name: Copy alpine to ECR | |
uses: truemark/skopeo-copy-action@v1 | |
with: | |
src-image: "docker://truemark/aws-cli:alpine" | |
dest-image: "docker://public.ecr.aws/truemark/aws-cli:alpine" | |
src-username: "${{ secrets.DOCKER_HUB_USERNAME }}" | |
src-password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | |
dest-username: "${{ steps.ecr-login.outputs.docker_username_public_ecr_aws }}" | |
dest-password: "${{ steps.ecr-login.outputs.docker_password_public_ecr_aws }}" | |
multi-arch: "all" |