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: Setup merge queue and seperate docker to it's own workflow #98

Merged
2 commits merged into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 7 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"on": { "push": { "branches": "main" }, "pull_request": {} },
"on":
{
"push": { "branches": ["pure-rust"] },
"pull_request": {},
"merge_group": {},
},
"name": "CI",
"permissions": { "security-events": "write", "packages": "write" },
"permissions": { "security-events": "write" },
"jobs":
{
"enforce-clippy":
Expand Down Expand Up @@ -140,30 +145,5 @@
},
],
},
"docker-build":
{
"name": "Build & Push Docker Container",
"needs": ["build"],
"runs-on": "ubuntu-latest",
"steps":
[
{
"name": "Checkout",
"uses": "actions/checkout@v4",
},
{
"name": "Build Image",
"run": "docker buildx build -t ghcr.io/goval-community/homeval:${{ github.sha }} .",
},
{
"name": "Log In to Registry",
"run": 'echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin',
},
{
"name": "Push Image",
"run": "docker push ghcr.io/goval-community/homeval:${{ github.sha }}",
},
],
},
},
}
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"on": { "push": { "branches": ["pure-rust"] } },
"name": "Docker",
"permissions": { "packages": "write" },
"jobs":
{
"docker-build":
{
"name": "Build & Push Docker Container",
"runs-on": "ubuntu-latest",
"steps":
[
{
"name": "Checkout",
"uses": "actions/checkout@v4",
},
{
"name": "Build Image",
"run": "docker buildx build -t ghcr.io/goval-community/homeval:${{ github.sha }} .",
},
{
"name": "Log In to Registry",
"run": 'echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin',
},
{
"name": "Push Image",
"run": "docker push ghcr.io/goval-community/homeval:${{ github.sha }}",
},
],
},
},
}