Skip to content

Release v0.6.0: Ed25519 SSH keys, CI improvements, and bug fixes #11

Release v0.6.0: Ed25519 SSH keys, CI improvements, and bug fixes

Release v0.6.0: Ed25519 SSH keys, CI improvements, and bug fixes #11

Workflow file for this run

name: deploy to ecr-public
on:
push:
branches:
- main
paths:
- '.github/workflows/image.yaml'
- 'client/src/farssh/const.py'
- 'image/*'
permissions:
id-token: write
contents: read
jobs:
deploy_source:
name: build and push farssh to ecr-public
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v6
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::329261680777:role/farssh-github
role-session-name: github-action-push
aws-region: us-east-1
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: apparentorder
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: ecr-public login
run:
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
# use qemu + buildx to build arm64 image, per
# https://community.ibm.com/community/user/powerdeveloper/blogs/siddhesh-ghadi/2023/02/08/build-multi-arch-images-on-github-actions-with-bui
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build and push to ECR
env:
ECR_REPOSITORY: public.ecr.aws/apparentorder/farssh
run: |
VERSION=$(python -c 'from client.src.farssh.const import FARSSH_VERSION; print(FARSSH_VERSION);')
DATE=$(date +%Y-%m-%d)
docker buildx build --push --platform linux/arm64 --build-arg FARSSH_VERSION=$VERSION --build-arg FARSSH_DATE=$DATE --tag $ECR_REPOSITORY:$VERSION image
docker buildx build --push --platform linux/arm64 --build-arg FARSSH_VERSION=$VERSION --build-arg FARSSH_DATE=$DATE --tag $ECR_REPOSITORY:latest image
- name: build and push to Dockerhub
env:
DOCKERHUB_REPOSITORY: apparentorder/farssh
run: |
VERSION=$(python -c 'from client.src.farssh.const import FARSSH_VERSION; print(FARSSH_VERSION);')
DATE=$(date +%Y-%m-%d)
docker buildx build --push --platform linux/arm64 --build-arg FARSSH_VERSION=$VERSION --build-arg FARSSH_DATE=$DATE --tag $DOCKERHUB_REPOSITORY:$VERSION image
docker buildx build --push --platform linux/arm64 --build-arg FARSSH_VERSION=$VERSION --build-arg FARSSH_DATE=$DATE --tag $DOCKERHUB_REPOSITORY:latest image