Skip to content

Commit

Permalink
merge main and update workflow deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
hmzakhalid committed Dec 10, 2024
1 parent 70d02dd commit e99feb4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ec2-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,26 @@ jobs:
id: version
run: echo "version=$(date +'%Y%m%d')-${GITHUB_SHA::8}" >> $GITHUB_OUTPUT

- name: Build image
run: |
docker build -t $IMAGE_NAME:${{ steps.version.outputs.version }} -f $DOCKERFILE_PATH .
- name: Log in to GitHub Container Registry
if: github.ref == 'refs/heads/release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
env:
IMAGE_TAG: ${{ steps.version.outputs.version }}
run: |
docker build -t $IMAGE_NAME:${{ steps.version.outputs.version }} -f $DOCKERFILE_PATH .
docker push $IMAGE_NAME:$IMAGE_TAG
- name: Push to GHCR
if: github.ref == 'refs/heads/release'
env:
IMAGE_TAG: ${{ steps.version.outputs.version }}
run: |
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest
docker push $IMAGE_NAME:$IMAGE_TAG
docker push $IMAGE_NAME:latest
deploy:
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ciphernode/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ serde = { workspace = true }
figment = { workspace = true }
alloy = { workspace = true }
shellexpand = { workspace = true }
url = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
url = { workspace = true }

0 comments on commit e99feb4

Please sign in to comment.