Skip to content

Commit 46d2ac7

Browse files
author
mike dupont
committed
prettier update
1 parent 2875ca8 commit 46d2ac7

File tree

25 files changed

+234
-271
lines changed

25 files changed

+234
-271
lines changed

.github/workflows/image.yaml

+77-80
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,93 @@
1-
21
name: Create and publish a Docker image
32

43
on:
5-
workflow_dispatch:
6-
#push:
7-
#pull_request:
4+
workflow_dispatch:
5+
#push:
6+
#pull_request:
87

98
env:
10-
REGISTRY: ghcr.io
11-
IMAGE_NAME: ${{ github.repository }}
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
1211

1312
jobs:
14-
15-
build-and-push-image:
16-
runs-on: ubuntu-latest
17-
permissions:
18-
contents: read
19-
packages: write
20-
attestations: write
21-
id-token: write
13+
build-and-push-image:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
attestations: write
19+
id-token: write
20+
21+
steps:
22+
#- name: Configure AWS credentials
23+
# uses: meta-introspector/configure-aws-credentials@v4
24+
# with:
25+
# aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
26+
# role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
27+
# # FIXME hard coded
28+
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github
2229

23-
steps:
24-
#- name: Configure AWS credentials
25-
# uses: meta-introspector/configure-aws-credentials@v4
26-
# with:
27-
# aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
28-
# role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
29-
# # FIXME hard coded
30-
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github
30+
- name: Set up Docker Buildx
31+
uses: meta-introspector/setup-buildx-action@v3.8.0
32+
with:
33+
install: true
34+
platforms: linux/amd64,linux/arm/v7,linux/arm/v8
3135

32-
- name: Set up Docker Buildx
33-
uses: meta-introspector/setup-buildx-action@v3.8.0
34-
with:
35-
install: true
36-
platforms: linux/amd64,linux/arm/v7,linux/arm/v8
37-
38-
# - name: Login to Amazon ECR
39-
# id: login-ecr
40-
# uses: meta-introspector/amazon-ecr-login@v1
36+
# - name: Login to Amazon ECR
37+
# id: login-ecr
38+
# uses: meta-introspector/amazon-ecr-login@v1
4139

42-
- name: Set short sha
43-
id: sha_short
44-
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
40+
- name: Set short sha
41+
id: sha_short
42+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
4543

46-
- name: Login to Docker Hub
47-
uses: meta-introspector/login-action@v3
48-
with:
49-
username: ${{ vars.DOCKER_HUB_USERNAME }}
50-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
44+
- name: Login to Docker Hub
45+
uses: meta-introspector/login-action@v3
46+
with:
47+
username: ${{ vars.DOCKER_HUB_USERNAME }}
48+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
5149

52-
- name: Checkout repository
53-
uses: meta-introspector/checkout@v4
50+
- name: Checkout repository
51+
uses: meta-introspector/checkout@v4
5452

55-
- name: Log in to the Container registry
56-
uses: meta-introspector/login-action@v3.0.0
57-
with:
58-
registry: ${{ env.REGISTRY }}
59-
username: ${{ github.actor }}
60-
password: ${{ secrets.GITHUB_TOKEN }}
53+
- name: Log in to the Container registry
54+
uses: meta-introspector/login-action@v3.0.0
55+
with:
56+
registry: ${{ env.REGISTRY }}
57+
username: ${{ github.actor }}
58+
password: ${{ secrets.GITHUB_TOKEN }}
6159

62-
- name: Extract metadata (tags, labels) for Docker
63-
id: meta
64-
uses: meta-introspector/metadata-action@v5.5.1
65-
with:
66-
images: |
67-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
68-
h4ckermike/elizaos-eliza
69-
# ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}
70-
71-
- name: Build and push Docker image
72-
id: push
73-
uses: meta-introspector/build-push-action@v6.10.0
74-
with:
75-
platforms: linux/arm64,linux/arm64/v8
76-
context: .
77-
push: true
78-
tags: |
79-
${{ steps.meta.outputs.tags }}
80-
labels: ${{ steps.meta.outputs.labels }}
60+
- name: Extract metadata (tags, labels) for Docker
61+
id: meta
62+
uses: meta-introspector/metadata-action@v5.5.1
63+
with:
64+
images: |
65+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
66+
h4ckermike/elizaos-eliza
67+
# ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}
68+
- name: Build and push Docker image
69+
id: push
70+
uses: meta-introspector/build-push-action@v6.10.0
71+
with:
72+
platforms: linux/arm64,linux/arm64/v8
73+
context: .
74+
push: true
75+
tags: |
76+
${{ steps.meta.outputs.tags }}
77+
labels: ${{ steps.meta.outputs.labels }}
8178

82-
- name: Generate artifact attestation
83-
uses: meta-introspector/attest-build-provenance@local
84-
with:
85-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
86-
subject-digest: ${{ steps.push.outputs.digest }}
87-
push-to-registry: true
79+
- name: Generate artifact attestation
80+
uses: meta-introspector/attest-build-provenance@local
81+
with:
82+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
83+
subject-digest: ${{ steps.push.outputs.digest }}
84+
push-to-registry: true
8885

89-
- name: Make Docker image public
90-
run: |
91-
curl \
92-
-X PATCH \
93-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
94-
-H "Accept: application/vnd.github.v3+json" \
95-
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
96-
-d '{"visibility":"public"}'
86+
- name: Make Docker image public
87+
run: |
88+
curl \
89+
-X PATCH \
90+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
91+
-H "Accept: application/vnd.github.v3+json" \
92+
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
93+
-d '{"visibility":"public"}'

.github/workflows/pr.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: PR Title Check
22

33
on:
44
workflow_dispatch:
5-
65

76
jobs:
87
check-pr-title:

.github/workflows/tauri-ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ env:
1212

1313
on:
1414
workflow_dispatch:
15-
1615

1716
jobs:
1817
test-build:

.github/workflows/test.yaml

+28-30
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
name: testdocker
22
on:
3-
workflow_dispatch:
4-
5-
env:
6-
REGISTRY: ghcr.io
7-
IMAGE_NAME: ${{ github.repository }}
8-
jobs:
9-
build-and-push-image:
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
13-
packages: write
14-
attestations: write
15-
id-token: write
16-
steps:
17-
- name: Login to Docker Hub
18-
uses: meta-introspector/login-action@v3
19-
with:
20-
username: ${{ vars.DOCKER_HUB_USERNAME }}
21-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
22-
- name: Build and push Docker image
23-
id: push
24-
uses: meta-introspector/build-push-action@v6.10.0
25-
with:
26-
platforms: linux/arm64,linux/arm64/v8
27-
context: .
28-
push: true
29-
tags: |
30-
${{ steps.meta.outputs.tags }}
31-
labels: ${{ steps.meta.outputs.labels }}
3+
workflow_dispatch:
324

33-
5+
env:
6+
REGISTRY: ghcr.io
7+
IMAGE_NAME: ${{ github.repository }}
8+
jobs:
9+
build-and-push-image:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
steps:
17+
- name: Login to Docker Hub
18+
uses: meta-introspector/login-action@v3
19+
with:
20+
username: ${{ vars.DOCKER_HUB_USERNAME }}
21+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
22+
- name: Build and push Docker image
23+
id: push
24+
uses: meta-introspector/build-push-action@v6.10.0
25+
with:
26+
platforms: linux/arm64,linux/arm64/v8
27+
context: .
28+
push: true
29+
tags: |
30+
${{ steps.meta.outputs.tags }}
31+
labels: ${{ steps.meta.outputs.labels }}

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"url": "ws://192.168.1.90:9229/hiva4rzuydf",
8+
"url": "ws://localhost:9229/7rq94r0clh7",
99
"name": "Attach bun",
1010
"type": "bun",
1111
"request": "attach"

buildspec.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ version: 0.2
22

33
env:
44
parameter-store:
5-
DOCKER_USERNAME : "tine_agent_4_docker_username"
6-
DOCKER_PASSWORD : "tine_agent_4_docker_password"
5+
DOCKER_USERNAME: 'tine_agent_4_docker_username'
6+
DOCKER_PASSWORD: 'tine_agent_4_docker_password'
77
#DOCKER_IMAGE : "tine_agent_7_agent_image"
88
variables:
9-
DOCKER_IMAGE : "h4ckermike/elizaos-eliza:v2"
9+
DOCKER_IMAGE: 'h4ckermike/elizaos-eliza:v2'
1010

11-
1211
phases:
1312
pre_build:
1413
commands:
@@ -29,4 +28,3 @@ phases:
2928
- docker tag 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 $DOCKER_IMAGE
3029
- docker push $DOCKER_IMAGE
3130
# h4ckermike/elizaos-eliza:feb10
32-

0 commit comments

Comments
 (0)