Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build docker image #42

Merged
merged 41 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6b68e3e
init fork
joaopereira12 Jul 8, 2024
232bcb1
fixing bug...
joaopereira12 Jul 8, 2024
e954e25
chore: release v0.0.1
joaopereira12 Jul 8, 2024
14da637
chore: release v0.0.2
joaopereira12 Jul 8, 2024
b2ee80f
new branch testing
joaopereira12 Jul 8, 2024
73f4f23
wip
joaopereira12 Jul 8, 2024
e308472
wip...
joaopereira12 Jul 8, 2024
fc3aea8
ready for pr
joaopereira12 Jul 8, 2024
8d7b97f
merged
joaopereira12 Jul 8, 2024
0df5f5b
Merge remote-tracking branch 'origin/main' into Test
joaopereira12 Jul 8, 2024
389678c
issue fixed
joaopereira12 Jul 8, 2024
0db8b0c
fixed identation
joaopereira12 Jul 8, 2024
1518a3e
fixes
joaopereira12 Jul 8, 2024
0403d60
CI docker build WIP
joaopereira12 Jul 10, 2024
a5b0840
CI docker build WIP...
joaopereira12 Jul 10, 2024
c2abe96
Merge branch 'Test'
joaopereira12 Jul 10, 2024
881308f
done
joaopereira12 Jul 10, 2024
6a47070
fixes
joaopereira12 Jul 10, 2024
ae3d2dd
fixing docker CI
joaopereira12 Jul 11, 2024
3a3dafb
fixing path to dockerfile
joaopereira12 Jul 11, 2024
a7399f8
fixing name invalid
joaopereira12 Jul 11, 2024
9e9d2a5
added multi archs
joaopereira12 Jul 12, 2024
161a5e0
fixed syntax error
joaopereira12 Jul 12, 2024
e309274
fixes
joaopereira12 Jul 12, 2024
7b6cf0f
testing workflow
joaopereira12 Jul 12, 2024
3402c62
testing...
joaopereira12 Jul 12, 2024
29f9329
testing...
joaopereira12 Jul 12, 2024
eee8436
fixing job names
joaopereira12 Jul 12, 2024
cd55e8b
uploaded artifact
joaopereira12 Jul 12, 2024
5dfc02b
fix missing output
joaopereira12 Jul 12, 2024
b9f17c7
Update build-docker-image.yml
joaopereira12 Jul 12, 2024
34e6cf5
Update build-docker-image.yml
joaopereira12 Jul 12, 2024
b4f87f1
Update build-docker-image.yml
joaopereira12 Jul 12, 2024
eb37e7d
removed tags
joaopereira12 Jul 12, 2024
d6dd5b3
fixing artifacts names
joaopereira12 Jul 12, 2024
2c63552
removed archs
joaopereira12 Jul 12, 2024
434fe39
fixing merge
joaopereira12 Jul 12, 2024
da29d10
switch from main to release
joaopereira12 Jul 12, 2024
2d294a0
fix: run on release & tag with version
joaopereira12 Jul 15, 2024
8f47fac
ci: adding version number to tag
joaopereira12 Jul 15, 2024
e072b47
ci: fixing tag name and remove push-by-digest
joaopereira12 Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build Docker Image
on:
push:
branches: [main]
pull_request:
branches: [main]
joaopereira12 marked this conversation as resolved.
Show resolved Hide resolved

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
joaopereira12 marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
joaopereira12 marked this conversation as resolved.
Show resolved Hide resolved
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
id: push
joaopereira12 marked this conversation as resolved.
Show resolved Hide resolved
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ./packages/node
file: ./packages/node/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}



joaopereira12 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ jobs:
cd ../../examples/canvas
yarn install --frozen-lockfile
yarn build


joaopereira12 marked this conversation as resolved.
Show resolved Hide resolved