Skip to content

Commit

Permalink
Update docker-deploy-stage.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
  • Loading branch information
Thistleman committed May 1, 2024
1 parent 6d2065a commit 6f96ea7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker-deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: copy ssh to root
run: |
sudo cp -r ~/.ssh /root
sudo chmod 600 /root/.ssh/id_rsa
sudo chmod 600 /root/.ssh/id_ed25519
sudo chmod o+x /root/
- name: Install Python
Expand Down Expand Up @@ -103,9 +103,9 @@ jobs:
IMAGE_TAG: master
run: |
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_ed25519
export DOCKER_BUILDKIT=1
docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile .
docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_ed25519)" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
- name: copy ssh to root
run: |
sudo cp -r ~/.ssh /root
sudo chmod 600 /root/.ssh/id_rsa
sudo chmod 600 /root/.ssh/id_ed25519
sudo chmod o+x /root/
- name: Install Python
Expand Down Expand Up @@ -185,9 +185,9 @@ jobs:
IMAGE_TAG: master
run: |
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_ed25519
export DOCKER_BUILDKIT=1
docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.worker .
docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_ed25519)" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.worker .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
Expand Down Expand Up @@ -227,14 +227,14 @@ jobs:
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_READ_KEY_UTIL }}
name: id_rsa # optional
name: id_ed25519 # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)

- name: copy ssh to root
run: |
sudo cp -r ~/.ssh /root
sudo chmod 600 /root/.ssh/id_rsa
sudo chmod 600 /root/.ssh/id_ed25519
sudo chmod o+x /root/
- name: Install Python
Expand Down Expand Up @@ -267,9 +267,9 @@ jobs:
IMAGE_TAG: master
run: |
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_ed25519
export DOCKER_BUILDKIT=1
docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.rabbitmq .
docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_ed25519)" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.rabbitmq .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
Expand Down

0 comments on commit 6f96ea7

Please sign in to comment.